IonIcons 404 Error after upgrade
See original GitHub issueBug Report
Ionic version:
[x] 4.9
Current behavior:
After running npm ionic i -g --save on a project the ionicons can not be found (404)
Expected behavior:
In Ionic version 4.8.0 icons would show up.
Steps to reproduce:
After running npm ionic i -g --save on a project the ionicons can not be found (404) “ionic”: “^4.9.0”, “ionicons”: “^4.5.5”, Related code:
<ion-icon name="medal"></ion-icon>
Other information:
Ionic info:
Ionic:
ionic (Ionic CLI) : 4.9.0
Ionic Framework : @ionic/angular 4.0.0
@angular-devkit/build-angular : 0.12.2
@angular-devkit/schematics : 7.1.4
@angular/cli : 7.1.4
@ionic/angular-toolkit : 1.2.2
System:
NodeJS : v8.12.0 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10
![ionicon-404](https://user-images.githubusercontent.com/45851367/51633384-86f28a00-1f1f-11e9-9130-c1d77a7e3ca2.PNG)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (4 by maintainers)
Top Results From Across the Web
IonIcons 404 Error after upgrade · Issue #17230 - GitHub
I am having this issue on OSX as well. I updated both today. I tried reverted to ionic 4.8.0 but the problem has...
Read more >Ionicons return 404 in Ionic4 - angular - Stack Overflow
I updated npm today, and noticed many Ionic icons from ionicons.com return 404 error. I've found a workaround (basically, modifying the ...
Read more >Ionicons not found - Ionic Angular
I am not able to add ionicons like person-sharp etc. it is coming 404 not found . I can just use person keywword....
Read more >Ionic ion icons svg 404 not found - Stef Van Looveren
When switching from a angular project to an Ionic project you have to know the following, because otherwise your Ionic icons might not...
Read more >[Solved]-Ionicons return 404 in Ionic4-angular.js - appsloveworld
Coding example for the question Ionicons return 404 in Ionic4-angular.js. ... I fixed my 404 errors by updating my Angular.json like this. assets:...
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
You have to update the angular.json to copy the icons into the final www: https://github.com/ionic-team/ionic/blob/master/CHANGELOG.md#breaking-changes-2
@hvlg-blaire I think there is some confusion here. The
ionic
package is the Ionic CLI, which is installed globally using:The
@ionic/angular
package is the Ionic Framework with the Angular bindings and should be installed from within the project (not globally):The latest version of the CLI is
4.9.0
and the Framework is@ionic/angular 4.0.0
.As Manu stated, there was a breaking change requiring the ionicons to be included in the
angular.json
file. It is included in our starters: https://github.com/ionic-team/starters/blob/master/angular/base/angular.jsonI’m not seeing the original issue in a freshly created Ionic 4 project. If you’re still seeing it with the above added - could you please provide steps to reproduce and/or a project that reproduces it. Thanks!