Commit 9f3a2900 authored by liujiangnan's avatar liujiangnan

feat: 添加问题解决记录

parent 3f519aee
......@@ -399,4 +399,18 @@ npm start
if(!this.uploadUrl){
fun();
}
```
\ No newline at end of file
```
### 模板编译CI不通过,报类似如下错误
```
ERROR in ./src/styles.scss Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js): Error: Node Sass version 5.0.0 is incompatible with ^4.0.0. at getSassImplementation
```
此情况属于老的模板遗留问题,需要在package.json里面锁一下node-sass的版本
```
"node-sass": "4.0.0"
```
\ No newline at end of file
......@@ -31,7 +31,8 @@
"rxjs": "~6.5.4",
"spark-md5": "^3.0.0",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
"zone.js": "~0.10.2",
"node-sass": "4.0.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.900.3",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment