各位大佬这里build之后报错咋回事呢?各位大佬的版本是?
Tiang-88 opened this issue · 1 comments
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
● Webpack █████████████████████████ cache (99%)
begin idle
ERROR Failed to compile with 2 errors 9:07:39 AM
error in ./src/.umi-production/core/routes.ts
Module not found: Error: Can't resolve '/home/judge/src/web/mianshiya-public/src/pages/User/Login' in '/home/judge/src/web/mianshiya-public/src/.umi-production/core'
error in ./src/.umi-production/core/routes.ts
Module not found: Error: Can't resolve '/home/judge/src/web/mianshiya-public/src/pages/addPaper' in '/home/judge/src/web/mianshiya-public/src/.umi-production/core'
ERROR in ./src/.umi-production/core/routes.ts 17:23-99
Module not found: Error: Can't resolve '/home/judge/src/web/mianshiya-public/src/pages/User/Login' in '/home/judge/src/web/mianshiya-public/src/.umi-production/core'
@ ./src/.umi-production/umi.ts 9:0-42 25:33-42
ERROR in ./src/.umi-production/core/routes.ts 155:23-97
Module not found: Error: Can't resolve '/home/judge/src/web/mianshiya-public/src/pages/addPaper' in '/home/judge/src/web/mianshiya-public/src/.umi-production/core'
@ ./src/.umi-production/umi.ts 9:0-42 25:33-42
webpack compiled with 2 errors
null
build failed
Error: build failed
at /home/judge/src/web/mianshiya-public/node_modules/@umijs/bundler-webpack/lib/index.js:172:29
at /home/judge/src/web/mianshiya-public/node_modules/@umijs/deps/compiled/webpack/5/bundle5.js:114591:14
at processQueueWorker (/home/judge/src/web/mianshiya-public/node_modules/@umijs/deps/compiled/webpack/5/bundle5.js:114529:6)
at processTicksAndRejections (internal/process/task_queues.js:77:11)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
解决了,str目录下的文件名又问题,修改下文件名即可解决