vue移动端项目vw适配运行项目时出现"advanced"报错解决办法。

Module build failed: Error: Cannot load preset "advanced". Please check your configuration for errors and try again.
at resolvePreset (E:\dxl_vue\baoge\node_modules\_cssnano@4.1.@cssnano\dist\index.js::)
at resolveConfig (E:\dxl_vue\baoge\node_modules\_cssnano@4.1.@cssnano\dist\index.js::)
at E:\dxl_vue\baoge\node_modules\_cssnano@4.1.@cssnano\dist\index.js::
at LazyResult.run (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::) @ ./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":true}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-7ba5bd90","scoped":true,"hasInlineConfig":false}!./node_modules/_sass-loader@7.1.@sass-loader/lib/loader.js?{"sourceMap":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=!./src/App.vue :- :-: :-
@ ./src/App.vue
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js error in ./src/components/HelloWorld.vue Module build failed: Error: Cannot load preset "advanced". Please check your configuration for errors and try again.
at resolvePreset (E:\dxl_vue\baoge\node_modules\_cssnano@4.1.@cssnano\dist\index.js::)
at resolveConfig (E:\dxl_vue\baoge\node_modules\_cssnano@4.1.@cssnano\dist\index.js::)
at E:\dxl_vue\baoge\node_modules\_cssnano@4.1.@cssnano\dist\index.js::
at LazyResult.run (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::)
at LazyResult.asyncTick (E:\dxl_vue\baoge\node_modules\postcss\lib\lazy-result.js::) @ ./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":true}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-469af010","scoped":true,"hasInlineConfig":false}!./node_modules/_sass-loader@7.1.@sass-loader/lib/loader.js?{"sourceMap":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=!./src/components/HelloWorld.vue :- :-: :-
@ ./src/components/HelloWorld.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

要解决这个报错,需要安装这个插件

npm i cssnano-preset-advanced --save-dev
上一篇:SASS的一些使用体会(安装-配置-开启firefox的调试)


下一篇:SqlSever基础 dateadd month 增加五个月