Skip to content
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 13 + V2: No Icons #87

Open
kombasltd opened this issue Jan 6, 2022 · 4 comments
Open

Angular 13 + V2: No Icons #87

kombasltd opened this issue Jan 6, 2022 · 4 comments

Comments

@kombasltd
Copy link

Hi,

I just installed version 2 for my Angular 13 app but I don't see any icons. After maximizing an Image it is displayed but I am not able to close ist (because of the missing icons).

Angular: 13.1.1
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1301.2
@angular-devkit/build-angular   13.1.2
@angular-devkit/core            13.1.2
@angular-devkit/schematics      13.1.2
@angular/cli                    13.1.2
@schematics/angular             13.1.2
rxjs                            6.6.7
typescript                      4.5.4

Best regards

@kombasltd
Copy link
Author

As I use FontAwesome in my project too, could the problem be here?

You use in your example:

"font-awesome": "^4.7.0",

I use (from the Fontawesome website): https://github.com/FortAwesome/angular-fontawesome

"@fortawesome/angular-fontawesome": "^0.10.1",
"@fortawesome/fontawesome-svg-core": "^1.2.36",
"@fortawesome/free-solid-svg-icons": "^5.15.4",

@kolkov
Copy link
Owner

kolkov commented Jan 7, 2022

Yes, I think it is not possible to combine other versions of font in one project. We need to convert icons to svg to the file or use it inline.

@kolkov
Copy link
Owner

kolkov commented Jan 7, 2022

@Vikas4790
Copy link

I was facing the same issue as well. But importing fontawesome css in body of index.html did the trick for me.

  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css"
    integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants