美文网首页
vue vue-style-loader !css-loader

vue vue-style-loader !css-loader

作者: 果汁密码 | 来源:发表于2018-04-04 17:17 被阅读2267次

    vue框架中,使用webpack打包vue项目,在执行npm run start的时候 出现如下错误:

    !!vue-style-loader!css-loader?{"minimize":false,"sourceMap":false}!../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-1d57e5ea","scoped":false,"hasInlineConfig":false}!stylus-loader?{"sourceMap":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./a.vue in ./src/components/a.vue

    To install it, you can run: npm install --save !!vue-style-loader!css-loader?{"minimize":false,"sourceMap":false}!../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-1d57e5ea","scoped":false,"hasInlineConfig":false}!stylus-loader?{"sourceMap":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./a.vu

    解决办法:

    npm install sass-loader --save-dev;
    npm install node-sass --save-dev;

    然后运行npm run start就可以 了

    相关文章

      网友评论

          本文标题:vue vue-style-loader !css-loader

          本文链接:https://www.haomeiwen.com/subject/okqlhftx.html