Angular-我安装了fortawesome包装后,我的角度应用程序停止工作
我的角度应用程序正常,但是由于我使用
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我完全忽略了 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