无法加载资源:服务器响应状态为404(未找到)-Ionic2 [英] Failed to load resource: the server responded with a status of 404 (Not Found) - Ionic2
本文介绍了无法加载资源:服务器响应状态为404(未找到)-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
然后我去WWW上检查我的构建文件夹,除了这些文件之外所有文件都消失了。
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:
- 创建一个新项目并放入我的文件。
- npm install
- npm install @ ionic / app-scripts @ latest- -save-dev
- npm install -g ionic cordova
- Create a new project and put in my files.
- npm install
- npm install @ionic/app-scripts@latest --save-dev
- npm install -g ionic cordova
任何想法,我能做什么
推荐答案
何时安装新版本的ionic lab清除浏览器的缓存?领导。
clear the cache of the browser whenever the new version of ionic lab is installed.
这篇关于无法加载资源:服务器响应状态为404(未找到)-Ionic2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文