我试图在Tomcat中部署我所有工作的角度代码。一切都很好,除了primeng数据表中缺少排序图标。其他字体真棒图标即将推出。
在chrome控制台中,
Failed to decode downloaded font: <URL>
Failed to decode downloaded font: http://localhost:8080/ccm/fontawesome-webfont.af7ae505a9eed503f8b8
Failed to decode downloaded font: http://localhost:8080/ccm/fontawesome-webfont.fee66e712a8a08eef580
OTS parsing error: Failed to convert WOFF 2.0 font to SFNT
OTS parsing error: incorrect file size in WOFF header
OTS parsing error: incorrect entrySelector for table directory`
感谢任何帮助。
这是由于我之前安装的font-awesome软件包的版本。我从app.module.ts,package.json,angular-cli.json中删除了它,然后再次构建应用程序以找到已解决的问题。