平时新建项目没有什么问题 今天新建的项目中 报这个错

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-ef68022e","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector?type=styles&i
ndex=0!./Login.vue in ./src/components/Login.vue

To install it, you can run: npm install --save !!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-ef68022e","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../node_modules/_vue-loader
@13.7.3@vue-loader/lib/selector?type=styles&index=0!./Login.vue

实际就是css 解析有问题

    "css-loader": "^0.28.11",
    "node-sass": "^4.11.0",
    "sass-loader": "^7.1.0",
    "vue-loader": "^13.7.3"
    "vue-style-loader": "^3.1.2",
cnpm install css-loader node-sass sass-loader vue-loader vue-style-loader style-loader --save

我是把css 依赖都按了一遍 省得以后还得找

Logo

前往低代码交流专区

更多推荐