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

~antd/es/style/themes/default.less not find #50

Open
hzhijun opened this issue Jan 18, 2023 · 2 comments
Open

~antd/es/style/themes/default.less not find #50

hzhijun opened this issue Jan 18, 2023 · 2 comments

Comments

@hzhijun
Copy link

hzhijun commented Jan 18, 2023

✖ Webpack
Compiled with some errors in 10.79s

ERROR Failed to compile with 1 errors 12:29:23

error in ./src/.umi/plugin-layout/layout/layout/style.less

Module build failed (from ./node_modules/@umijs/bundler-webpack/lib/webpack/plugins/mini-css-extract-plugin/src/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/@umijs/deps/compiled/less-loader/cjs.js):

@import '~antd/es/style/themes/default.less';
^
ENOENT: no such file or directory, open '/Users/admin/frontend/node_modules/antd/es/style/themes/default.less'
in /Users/admin/frontend/src/.umi/plugin-layout/layout/layout/style.less (line 1, column 0)
at /Users/admin/frontend/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:105544:20
at /Users/admin/frontend/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:47997:11
at /Users/admin/frontend/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:47863:18
at context.callback (/Users/admin/frontend/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:47741:13)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)

@ ./src/.umi/plugin-layout/layout/layout/index.tsx 12:0-22
@ ./src/.umi/plugin-layout/Layout.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./src/.umi/umi.ts

@hzhijun
Copy link
Author

hzhijun commented Jan 18, 2023

本地执行 npx -p @ant-design/codemod-v5 antd5-codemod src 命令,将 antd 从 4.0 升级到 5.0,使用 yarn start 命令启动服务报错。
提示 antd/es/style/themes/default.less 找不到。

@vagusX
Copy link
Member

vagusX commented Feb 2, 2023

本地执行 npx -p @ant-design/codemod-v5 antd5-codemod src 命令,将 antd 从 4.0 升级到 5.0,使用 yarn start 命令启动服务报错。

提示 antd/es/style/themes/default.less 找不到。

这个文件迁移完还有引用嘛?
umi 是什么版本呀?

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

2 participants