Angular 2 - PrimeNg style not working

后端 未结 7 1833
野趣味
野趣味 2020-12-29 10:53

I\'ve followed the instruction to install primeng by running npm install primeng --save then importing what I need in the app.module.ts file, for e

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-29 11:11

    Just upgraded to PrimeNG 6.1.6 and got this error.

    Looks like with this release the themes have stopped using theme.css in favor of theme.scss. So, you will have to reference "node_modules/primeng/resources/themes/omega/theme.scss" (instead of "theme.css") in the "styles" section of angular.json AND …

    You will need to npm rebuild node-sass.

提交回复
热议问题