-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
按需引入 Menu 在使用 css 会提示 Failed to resolve loader: less-loader
#3678
Comments
请安装 less, less-loader |
如需按需引入,直接 import { Menu } from 'ant-design-vue' 即可 |
如果决定使用了 css 的话,为什么还要安装 less 呢? |
下个版本会修复 |
thx |
不知道应该装什么版本的less-loader。 |
是不是要装vue-cli的下个版本? |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
2.0.0
Environment
maxos 、 chrome88 、 vue3
Reproduction link
Steps to reproduce
import 'ant-design-vue/lib/menu/style/css';
What is expected?
使用
css
的时候不会使用less
What is actually happening?
Failed to resolve loader: less-loader You may need to install it.
我在看代码的时候发现是文件
ant-design-vue/lib/menu/style/css
中 第七行require("../../tooltip/style");
此行引起的问题,改写为
require("../../tooltip/style/index.css");
就不会报错了
The text was updated successfully, but these errors were encountered: