-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular 8.2.14 No provider for FaConfig #210
Comments
My angular.cjson for production has the following parameters
|
I had to use the version 0.5.0 of @fortawesome/angular-fontawesome instead of version 0.6.0-alpha.0 |
@AmaelN Thanks for the workaround of downgrading to 0.5.0, that worked. However, this issue still persists with 0.6.0-alpha.0, could we keep the issue open so it can be resolved? |
@bgever Can you create a repository on GitHub with the minimal code to reproduce this issue? |
@devoto13 If you test it with aot enabled, you'll most likely get the error too. With aot disabled it works without any issues, and the default setting is aot: false on the development server, but true when building for production. |
@devoto13 Thanks for looking into it! Please check out this repo for reproduction: https://github.com/bgever/ng-fa-aot Commit messages should be explanatory.
Run
(note that I've disabled build optimization in order to see the actual names instead of minified ones) |
@ensnared I think you're right. Most likely I served the app in development mode and compiled in production mode, but never tried to serve in production mode. @bgever Thanks for the reproduction! I've looked into it and in fact it crashes even with the basic setup described in the README using AoT. I've tried to debug it a bit and it seems that library build produced by Angular CLI 9.x does not really work for the Angular 8.x application as nothing really changed in the relevant source code of the Given that this is a tooling issue, which I don't think will be fixed by Angular/Angular CLI and the amount of problems people get trying to run 0.6.0-alpha.0 on Angular 8.x I'm going to resolve it by dropping support for Angular 8.x in 0.6.0 release of |
0.5 is working well for me with Angular 8, so I don't see issues for dropping support in 0.6. Thanks for looking into the issue! 👍 |
Also adds end-to-end test for VE mode. Closes FortAwesome#208 FortAwesome#210
Also adds end-to-end test for VE mode. Closes FortAwesome#208 FortAwesome#210
Also adds end-to-end test for VE mode. Closes FortAwesome#208 FortAwesome#210
Closed per #213. |
Describe the problem
I've follow the procedure describe on the readme to use font awsome and installed all required packages
When I'm using
ng serve
, everything is working well and my icons are presentbut as soon as I'm using
ng serve --prod
I'm getting the following error message
The text was updated successfully, but these errors were encountered: