[英]Error when switching from node-sass to sass(dart-sass) on Angular 10
I am using Angular version 10.2.0, NodeJs 14.17.3 and would like to switch from node-sass to package sass (formerly dart-sass).我正在使用 Angular 版本 10.2.0,NodeJs 14.17.3,并且想从 node-sass 切换到包 sass(以前称为 dart-sass)。 I uninstalled node-sass, deleted node_modules, cleared npm cache, npm install and installed sass.
我卸载了 node-sass,删除了 node_modules,清除了 npm 缓存,npm install 并安装了 sass。 When I run the program, the sass-loader throws me errors.
当我运行程序时,sass-loader 会抛出错误。
Snippet from my package.json:来自我的 package.json 的片段:
"sass": "^1.43.4",
"sass-loader": "^10.1.1",
"simple-line-icons": "^2.4.1",
"ts-helper": "0.0.1",
"tslib": "~2.1.0",
"xlsx": "^0.15.6",
"zone.js": "^0.10.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.1002.2",
"@angular/cli": "^10.2.2",
"@angular/compiler-cli": "^10.2.4",
Can you help me with my problem?你能帮我解决我的问题吗?
您可以尝试用::ng-deep
替换/deep/
出现 - 我认为/deep/
可能不再受支持
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.