依赖包报错Invalid options object. Less Loader has been initialized using an options object that does not
1.问题:yarn安装依赖包,启动项目报错errorin ./node_modules/ant-design-vue/dist/antd.lessModule build failed: ValidationError: Invalid options object. Less Loader has been initialized using an options object that doe
·
1.问题:yarn安装依赖包,启动项目报错
error in ./node_modules/ant-design-vue/dist/antd.less
Module build failed: ValidationError: Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
2.原因:这是因为less-loader的版本问题,手动将package.json中less-loader版本改为5.0.0;然后重新yarn一次,在启动就可以解决了
3.yarn
4.成功后在重新启动即可解决问题
更多推荐
已为社区贡献14条内容
所有评论(0)