Module build failed: Error: Cannot load preset "advanced". Please check your configuration for errors and try again. at resolvePreset (E:dxl_vueaoge ode_modules\_cssnano@4.1.8@cssnanodistindex.js:79:11) at resolveConfig (E:dxl_vueaoge ode_modules\_cssnano@4.1.8@cssnanodistindex.js:90:16) at E:dxl_vueaoge ode_modules\_cssnano@4.1.8@cssnanodistindex.js:115:16 at LazyResult.run (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:277:20) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:192:32) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) @ ./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.0@sass-loader/lib/loader.js?{"sourceMap":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 4:14-377 13:3-17:5 14:22-385 @ ./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_vueaoge ode_modules\_cssnano@4.1.8@cssnanodistindex.js:79:11) at resolveConfig (E:dxl_vueaoge ode_modules\_cssnano@4.1.8@cssnanodistindex.js:90:16) at E:dxl_vueaoge ode_modules\_cssnano@4.1.8@cssnanodistindex.js:115:16 at LazyResult.run (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:277:20) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:192:32) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) at LazyResult.asyncTick (E:dxl_vueaoge ode_modulespostcssliblazy-result.js:204:22) @ ./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.0@sass-loader/lib/loader.js?{"sourceMap":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/HelloWorld.vue 4:14-396 13:3-17:5 14:22-404 @ ./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