我实际上正在将我的 Angular 项目从 NPM 迁移到 PNPM,并且我有一个奇怪的样式错误。由于我使用 PNPM 运行项目,因此无法识别样式:
角.json:
"styles": [
"src/styles/import.scss",
"node_modules/primeng/resources/primeng.min.css",
"node_modules/primeicons/primeicons.css",
"node_modules/font-awesome/css/font-awesome.min.css",
"node_modules/flag-icon-css/css/flag-icon.min.css",
"node_modules/ion-rangeslider/css/ion.rangeSlider.css",
"./src/styles/ion.rangeSlider.skinFlat.css",
"node_modules/angular2-multiselect-dropdown/themes/default.theme.css",
"node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles/index.scss"
],
错误:
ERROR in multi ./src/styles/import.scss ./node_modules/primeng/resources/primeng.min.css ./node_modules/primeicons/primeicons.css ./node_modules/font-awesome/css/font-awesome.min.css ./node_modules/flag-icon-css/css/flag-icon.min.c
ss ./node_modules/ion-rangeslider/css/ion.rangeSlider.css ./src/styles/ion.rangeSlider.skinFlat.css ./node_modules/angular2-multiselect-dropdown/themes/default.theme.css ./node_modules/@angular/material/prebuilt-themes/indigo-pink.
css ./src/styles/index.scss
Module not found: Error: Can't resolve 'E:\Dev\UVIE\uvie-front\src\styles\ion.rangeSlider.skinFlat.css' in 'E:\Dev\UVIE\uvie-front'
提前谢谢各位!