-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Ionic-Angular: ionicons do not load #880
Comments
@whydoievenneedthis In your
Can you verify you have this configuration and that your |
@SimonCockx the indicated line is present in the However the I would have to add |
@whydoievenneedthis I guess this is by design of Since you are directly depending on I'm not sure whether having to do this manually is desirable or not. Could we automatically add @DominikPieper @whydoievenneedthis what do you think? |
@SimonCockx mhh not sure yet. I’ll do Sonne experiments cause I usually don’t use pnpm that often. I plan to do some stuff around the ionic packages the next time |
Describe the bug
Having the following html fragment in a component:
The icon does not appear. There is an attempt to load the svg file, but it returns with a 404:
Trying to manually open the URL above causes the router to kick in and to redirect to the
**
path.In addition to that, when the application is built, there is no svg directory with the icon files anymore.
angular: 15.0.4
capacitor: 4.6.1
ionic: 6.4.1
ionicons: 6.0.4 (transitive)
nx: 15.4.1
nxext/capacitor: 15.2.0
nxext/ionic-angular: 15.1.0
To Reproduce
https://github.com/whydoievenneedthis/ionicons-not-loading
Expected behavior
The svg file is served correctly and the icon appears in the browser.
Additional context
Last time I know this was working, it was with Angular 13 and the old nxtend plugin (I only have two icons in some rarely visited pages, so it took me a while to notice this).
Downgrading to angular 14, nx 14, nxext 14 and ionicons 5 did not solve the issue.
The text was updated successfully, but these errors were encountered: