恢复文件后浏览器在 Cordova 上下文中显示的空白屏幕
Blank screen shown in the browser in the context of Cordova after restoring files
我接手了一个使用 Cordova、Ionic 和 AngularJS 构建的 working 项目。
不幸的是,由于硬盘崩溃,我不得不从头开始恢复原始文件。
所以我和以前一样运行:
1. npm install -g cordova ionic bower grunt-cli
2. npm install -g ios-sim ios-deploy
3. npm install
4. bower install
5. grunt build
6. ionic state reset
最后是 grunt serve
。
一切顺利,我可以像以前一样请求 http://localhost:8100/#/,到目前为止没有任何问题。
但是我收到的页面在任何一个浏览器中都是空白的(没有 404),既没有使用 /index.html
也没有进行任何更改。
备注:
- 1:之前我运行之前的所有步骤都成功了。
- 2: 在 Chrome Canary 中调试没有提供线索,端口 8100 在 Ionic 设置中是定义的。
有什么想法吗?
重新安装整个系统一次有帮助!
我接手了一个使用 Cordova、Ionic 和 AngularJS 构建的 working 项目。
不幸的是,由于硬盘崩溃,我不得不从头开始恢复原始文件。
所以我和以前一样运行:
1. npm install -g cordova ionic bower grunt-cli
2. npm install -g ios-sim ios-deploy
3. npm install
4. bower install
5. grunt build
6. ionic state reset
最后是 grunt serve
。
一切顺利,我可以像以前一样请求 http://localhost:8100/#/,到目前为止没有任何问题。
但是我收到的页面在任何一个浏览器中都是空白的(没有 404),既没有使用 /index.html
也没有进行任何更改。
备注:
- 1:之前我运行之前的所有步骤都成功了。
- 2: 在 Chrome Canary 中调试没有提供线索,端口 8100 在 Ionic 设置中是定义的。
有什么想法吗?
重新安装整个系统一次有帮助!