Nicole WanYi
Nicole WanYi

Reputation: 81

Failed to load resource: the server responded with a status of 404 (Not Found) - Ionic2

my project is working fine until ytd. I am not sure why, when I “ionic serve” the project, this error keeps prompting.

Ionic Serve Error Message Ionic Serve Error Message

And I went to check my build folder in WWW, all the files are gone except these.

Build Folder files Build Folder files

I have already tried the below methods but all doesn’t work for me:

  1. Create a new project and put in my files.
  2. npm install
  3. npm install @ionic/app-scripts@latest --save-dev
  4. npm install -g ionic cordova

Any idea, what I can do to install back my build folder files?

Upvotes: 8

Views: 12897

Answers (3)

clear the cache of the browser whenever the new version of ionic lab is installed.

Upvotes: 0

Khalifamuname
Khalifamuname

Reputation: 9

I had the same problem but solved it by just clearing the browser data/history. NOTE that I'am using v4. beta ionic I hope that helps!

Upvotes: 0

Daniel Jasiński
Daniel Jasiński

Reputation: 96

The same problem I had when one of the plugin in "plugin.xml" file had wrong path. Wrong:

<config-file target="app/src/main/res/xml/config.xml" parent="/*">

Good:

<config-file target="res/xml/config.xml" parent="/*">

Upvotes: 0

Related Questions