问题处理
INFO Starting development server...
98% after emitting CopyPlugin
ERROR Failed to compile with 1 error 下午2:20:23
error in ./src/assets/styles/common.scss
Syntax Error: Error: PostCSS received undefined instead of CSS string
Syntax Error: Error: PostCSS received undefined instead of CSS string
在启动引用.scss
文件的 vue-cli 项目时产生的报错。可能是依赖插件由于Nodejs 版本不符导致的,切换了版本后便修复了。
# 报错
* 14.17.1 (Currently using 64-bit executable)
# 降低版本后,启动项目不再报错
* 13.9.0 (Currently using 64-bit executable)
不同的Nodejs版本所支持的 node-sass 版本
本人 node-sass 版本
"node-sass": "4.14.1"
Below is a quick guide for minimum and maximum support supported version of node-sass