在升级完node.js后启动项目是发现报错,这是由于版本兼容导致的,最终无报错依赖如下:
"dependencies": {
"core-js": "^3.6.5",
"element-ui": "^2.3.6",
"font-awesome": "^4.7.0",
"mavon-editor": "^2.10.4",
"node-sass": "6.0.1",
"sass-loader": "10.2.0",
"vue": "^2.6.11",
"vue-animate-number": "^0.4.2",
"vue-router": "^3.2.0"
},
- node-sass: node-sass@6.0.1
- sass-loader: sass-loader@10.2.0
经测试,以上对应版本启动不报错。