Angular-我安装了fortawesome包装后,我的角度应用程序停止工作

发布于 2025-01-26 22:29:38 字数 593 浏览 2 评论 0原文

我的角度应用程序正常,但是由于我使用

ng add @fortawesome/angular-fontawesome

该应用程序安装了FortaDesome,因此我遇到的错误是

Error: node_modules/@fortawesome/angular-fontawesome/config.d.ts:25:21 - error TS2694: Namespace '"C:/Users/swaroop/Repos/angular-task/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

我使用的Angular版本是 11.0.7

最初我已经安装了Angular-Fontawesome 6在Angular 11中不支持它,因此我使用NPM卸载了它并安装了Angular-Fontawesome 5,但我仍然遇到相同的错误。 我尝试在节点模型中核能整个@forawesome文件夹,然后尝试一个新的安装,但我的错误仍然

有我做错了什么,我该如何解决这个问题?

I have an angular application which worked fine but since I installed FortAwesome using

ng add @fortawesome/angular-fontawesome

The application has stopped working, the error I get is

Error: node_modules/@fortawesome/angular-fontawesome/config.d.ts:25:21 - error TS2694: Namespace '"C:/Users/swaroop/Repos/angular-task/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

The version of angular I use is 11.0.7

Initially I had installed angular-fontawesome 6 which wasn't supported in Angular 11, so I uninstalled it using npm and installed angular-fontawesome 5 but I still get the same error.
I tried nuking the entire @forawesome folder in node-modules and try a fresh install, still the same error

Is there something I am doing wrong and how would I solve this issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

弃爱 2025-02-02 22:29:38

我完全忽略了 https://github.com/forthawsome.com/forthawesome.com/angular-fondesome/angular-fondasey 。我正在安装最新版本,该版本与我的Angular版本不兼容。我现在回滚了fontawesome的版本,一切正常

I had totally overlooked the compatibility matrix at https://github.com/FortAwesome/angular-fontawesome. I was installing the latest version which was not compatible with my Angular version. I have now rolled back the version of fontawesome and everything works fine

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文