问题描述
ERROR Failed to compile with 1 error error in
./node_modules/ant-design-vue/es/button/style/index.less
解决方法
修改 babel.config.js
配置文件
module.exports = {
presets: ["@vue/app"],
plugins: [
[
"import",
{ libraryName: "ant-design-vue", libraryDirectory: "es", style: true }
]
]
};
将其中的 style: true
修改为 style: 'css'