首页 > 解决方案 > 谷歌浏览器中的fontawesome中断与角度

问题描述

我有 Angular 8 应用程序。

如果我启动应用程序,则在 localhost 中。每次在文件上都会中断:

use.fontawesome.com/5698ab9788.js.

这是完整的文件:


window.FontAwesomeCdnConfig = {
  autoA11y: {
    enabled: true
  },
  asyncLoading: {
    enabled: true
  },
  reporting: {
    enabled: false
  },
  useUrl: "use.fontawesome.com",
  faCdnUrl: "https://cdn.fontawesome.com:443",
  code: "5698ab9788"
};

并且出现了这三个错误:

5698ab9788.js:15 GET http://localhost:4200/assets/hepchat/fonts/fontawesome-webfont.woff2?v=4.6.1 net::ERR_ABORTED 404 (Not Found)
c @ 5698ab9788.js:15
(anonymous) @ 5698ab9788.js:15
(anonymous) @ 5698ab9788.js:15
h.load @ 5698ab9788.js:15
(anonymous) @ 5698ab9788.js:15
(anonymous) @ 5698ab9788.js:15
2index.html:1 GET http://localhost:4200/assets/hepchat/fonts/fontawesome-webfont.woff?v=4.6.1 net::ERR_ABORTED 404 (Not Found)

所以我的问题是如何解决这个错误?谢谢

1

标签: javascriptangulargoogle-chrome

解决方案


推荐阅读