0

When I add a library, it shows me an error on stackblitz.

Error in ~/src/main.ts ngcc failed to run on @fortawesome/angular-fontawesome@0.7.0.

https://stackblitz.com/edit/angular-ivy-wz89c7

Am I the only one to have this problem?

James Wilcox
  • 5,307
  • 16
  • 25
Kaczor
  • 21

2 Answers2

1

For me it helped to disable "Enable Ivy" in the settings. Which result in:

"angularCompilerOptions": {
"enableIvy": false,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true

}

Andreas
  • 85
  • 1
  • 13
0

I changed the package.json to use "latest" instead of "" for fontawesome and it works.

"@fortawesome/angular-fontawesome": "latest",

Hal
  • 1,229
  • 11
  • 26