bug: Ionicons are no longer displayed after updating to Ionic 5
See original GitHub issueBug Report
Ionic version: [x] *5.0.0-rc.2
Current behavior: Using the last release of Ionic (4.11.7) all ionicons are displayed but when I upgrade to 5.x I have no more icons loaded.
I checked in www/svg folder I have the icons prefixed by ios-
and md-
like as for ionic 4.x but when I brose the mobile app using my browser (ionic serve), I can see that requests are done to get the svg files without any prefix. with ionic 4 the request is done for the sema resource adding the “md-” prefix.
Html in template file:
<ion-icon name="person" item-start></ion-icon>
Html of generated icon is the same for ionic 4 / 5:
<ion-icon _ngcontent-osv-c1="" item-start="" mode="md" name="person" ng-reflect-mode="md" ng-reflect-name="person" role="img" class="md hydrated" aria-label="person"></ion-icon>
BR,
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Ionicons upgrade from v4 to v5 resulting in not displaying ...
METHOD 1. Try to run: cordova clean. and retry. If not work follow method two. METHOD 2. try to run: ionic cordova platform...
Read more >Ionic App Troubleshooting - Updating Ionic Packages
Updating Ionic's packages; Adding third party libs; Blank App; Directive Not Working; Click Delays; Common mistakes. Forgetting Parentheses on a Decorator ...
Read more >Ionicons Usage Guide
Usage. Ionicons is a completely open-source icon set with 1,300 icons crafted for web, iOS, Android, and desktop apps. Ionicons was made for...
Read more >Ionic 4 > Ionic 5 Project Upgrade
Note that the option of creating new apps with the Ionic 4 framework was removed and we no longer support the projects that...
Read more >Custom SVG Icons in Ionic with Ionicons
IMPORTANT: If you are using the script above to add Ionicions to a non-Ionic project, make sure you are including the latest version...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you are using
ionic/vue
withIonic 5
andionicons
don’t show. Try doing thisDo this to use ionicons in Ionic 5
In the HTML
<ion-icon name="eye"></ion-icon>
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.