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.
依赖包报错Invalid options object. Less Loader has been initialized using an options object that does not

2.原因:这是因为less-loader的版本问题,手动将package.json中less-loader版本改为5.0.0;然后重新yarn一次,在启动就可以解决了
依赖包报错Invalid options object. Less Loader has been initialized using an options object that does not
3.yarn

依赖包报错Invalid options object. Less Loader has been initialized using an options object that does not
4.成功后在重新启动即可解决问题

相关文章: