question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IonIcons 404 Error after upgrade

See original GitHub issue

Bug 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
manucorporatcommented, Jan 23, 2019

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

1reaction
brandyscarneycommented, Jan 23, 2019

@hvlg-blaire I think there is some confusion here. The ionic package is the Ionic CLI, which is installed globally using:

npm i -g ionic

The @ionic/angular package is the Ionic Framework with the Angular bindings and should be installed from within the project (not globally):

npm install @ionic/angular@latest

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.json

I’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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found