在运行npm运行服务之后,我得到了这个错误:
in ./src/components/site-checker/insert-model.vue?vue&type=style&index=0&lang=stylus&
Syntax Error: ValidationError: Invalid options object. Stylus Loader has been initialized using an options object that does not match the API schema.
- options has an unknown property 'preferPathResolver'. These properties are valid:
object { stylusOptions?, sourceMap?, webpackImporter?, additionalData? }我在这个框架中使用VueJS:
Vue 2 babel,路由器,vuex Vue CLI v4.5.8
发布于 2020-12-12 14:19:15
这是stylus-loader和vue-cli之间最近出现的兼容性问题的结果。最近,它是固定在Vue的开发分公司。
目前最好的选择是将stylus-loader降级到第3版。
npm install stylus-loader@3您还可以尝试将您的vue-cli升级到最新版本:
npm更新-g @vue/cli 或 纱线全球升级-最新@vue/cli
https://stackoverflow.com/questions/65265374
复制相似问题