2

我在 stackblitz 中创建了示例 Angular 应用程序并导入了所有包以使primeng工作。

"styles"在 angular.json 中的样子

"styles": [
              "node_modules/primeng/resources/primeng.min.css",
              "node_modules/primeicons/primeicons.css",
              "node_modules/primeng/resources/themes/nova-light/theme.css",              
              "src/styles.css"
            ],

我看了一下这个问题,但找不到任何类似的东西。

这是堆栈闪电战链接。

更新 1

我意识到控制台上几乎没有警告抱怨' Failed to decode downloaded font:'

Failed to decode downloaded font: <URL>
(index):1 Failed to decode downloaded font: https://hemant-primengicon-issue.stackblitz.io/fonts/open-sans-v15-latin-regular.woff2
(index):1 Failed to decode downloaded font: https://hemant-primengicon-issue.stackblitz.io/fonts/primeicons.ttf
(index):1 Failed to decode downloaded font: https://hemant-primengicon-issue.stackblitz.io/fonts/open-sans-v15-latin-regular.woff
(index):1 Failed to decode downloaded font: https://hemant-primengicon-issue.stackblitz.io/fonts/open-sans-v15-latin-regular.ttf
(index):1 Failed to decode downloaded font: https://hemant-primengicon-issue.stackblitz.io/fonts/primeicons.woff
4

0 回答 0