zoukankan      html  css  js  c++  java
  • vue移动端项目vw适配运行项目时出现"advanced"报错解决办法。

    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
  • 相关阅读:
    从MVC和三层架构说到ssh整合开发-下
    Codeforces Round #226 (Div. 2)--A Bear and Raspberry
    ISA95的抽象惯例
    Difference between End-to-end testing and System testing
    javascript Date format(js日期格式化)
    给easyui datebox扩展一个清空按钮
    easyui combobox开启搜索自动完成功能
    给你的webstorm添加快速生成注释得快捷键
    location.origin兼容IE
    将json转换成struts参数
  • 原文地址:https://www.cnblogs.com/PYiP/p/10186534.html
Copyright © 2011-2022 走看看