简体   繁体   中英

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离子服务错误信息

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

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?

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="/*">

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!

每当安装新版本的ionic lab时,请清除浏览器的缓存。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM