美文网首页
Vue项目设置lang="scss"报错* !!vue-styl

Vue项目设置lang="scss"报错* !!vue-styl

作者: 笑胖仔 | 来源:发表于2020-03-21 11:41 被阅读0次

    1、项目中设置lang=“scss”,运行项目报错:

    Cannot find module'node-sass'

    解决:安装sass

    cnpm install node-sass--save-dev

    2、仍报错:

    *!!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-dcbcd43c","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./NewsList.vue in./src/components/tabbar/NewsList.vueTo install it,you can run:npm install--save!!vue-style-loader!css-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{"vue":true,"id":"data-v-dcbcd43c","scoped":true,"hasInlineConfig":false}!sass-loader?{"sourceMap":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./NewsList.vue

    解决:

    npm install sass sass-loader--save-dev

    相关文章

      网友评论

          本文标题:Vue项目设置lang="scss"报错* !!vue-styl

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