Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

各位大佬这里build之后报错咋回事呢?各位大佬的版本是? #22

Open
Tiang-88 opened this issue Mar 26, 2022 · 1 comment

Comments

@Tiang-88
Copy link

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.

@Tiang-88
Copy link
Author

解决了,str目录下的文件名又问题,修改下文件名即可解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant