无法在 angular.json 中应用 `omega/theme.css`
Cannot apply `omega/theme.css` in angular.json
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css",
"node_modules/primeicons/primeicons.css",
"./node_modules/primeng/resources/primeng.min.css",
"./node_modules/primeng/resources/themes/omega/theme.css" //wont work
]
omega/theme.css 总是显示 :-
ERROR in multi
./node_modules/@angular/material/prebuilt-themes/indigo-pink.css
./node_modules/bootstrap/dist/css/bootstrap.min.css ./src/styles.css
./node_modules/primeicons/primeicons.css
./node_modules/primeng/resources/primeng.min.css
./node_modules/primeng/resources/themes/omega/theme.css Module not
found: Error: Can't resolve 'path'
我也尝试在 style.css 中导入它,但没有任何变化。其他任何事情都没有错误。
我还安装了:-
npm install primeng font-awesome
npm install @angular/animations --save
是否有启动许可?
Omega 主题不是 available.Because 弃用所有免费主题并在 PrimeNG 7.0 中删除它们
引入一个由 PrimeNG 主题设计器生成的新 Nova 免费主题,让免费主题看起来更高级,Nova 有 3 个备选方案;
- 新星之光
- 新星色
- 新星暗
使用以上主题。
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css",
"node_modules/primeicons/primeicons.css",
"./node_modules/primeng/resources/primeng.min.css",
"./node_modules/primeng/resources/themes/omega/theme.css" //wont work
]
omega/theme.css 总是显示 :-
ERROR in multi ./node_modules/@angular/material/prebuilt-themes/indigo-pink.css ./node_modules/bootstrap/dist/css/bootstrap.min.css ./src/styles.css ./node_modules/primeicons/primeicons.css ./node_modules/primeng/resources/primeng.min.css ./node_modules/primeng/resources/themes/omega/theme.css Module not found: Error: Can't resolve 'path'
我也尝试在 style.css 中导入它,但没有任何变化。其他任何事情都没有错误。
我还安装了:-
npm install primeng font-awesome
npm install @angular/animations --save
是否有启动许可?
Omega 主题不是 available.Because 弃用所有免费主题并在 PrimeNG 7.0 中删除它们
引入一个由 PrimeNG 主题设计器生成的新 Nova 免费主题,让免费主题看起来更高级,Nova 有 3 个备选方案;
- 新星之光
- 新星色
- 新星暗
使用以上主题。