没找到办法
ERROR Failed to compile with 1 error 13:29:24
error in ./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss&scoped=true
Syntax Error: Error: PostCSS received undefined instead of CSS string
@ ./node_modules/vue-style-loader??ref--9-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/vue-loader-v16/dist/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss&scoped=true 4:14-431 15:3-20:5 16:22-439
@ ./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss&scoped=true
@ ./src/App.vue
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
yarn add node-sass@5.0.0 --save
https://www.cnblogs.com/xingjibin/p/13032796.html
yarn add node-sass@5.0.0 --save
@^4.0.0版本node-sass安装不成功 试过各种博客上的方法不成, 最后把本机环境的nodejs版本由v16降低到了v14,再用cnpm才安装成功 https://www.cnblogs.com/huic/p/15104737.html
npm i vue-lazyload element-ui node-sass sass-loader vue-awesome-swiper
今天想重新运行一下这个mimall项目,之前可以run,现在sass,版本问题,也许是,弄了一上午多,太坑了。 以后要找新的项目做
|