【问题标题】:Blank screen shown in the browser in the context of Cordova after restoring files恢复文件后在 Cordova 上下文中的浏览器中显示空白屏幕
【发布时间】:2016-05-02 18:58:50
【问题描述】:

我接手了一个使用 Cordova、Ionic 和 AngularJS 构建的工作项目。

不幸的是,由于硬盘崩溃,我不得不从头开始恢复原始文件。

所以我还是像以前一样跑了:

 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 browser gruntjs npm bower


    【解决方案1】:

    重新安装整个系统有帮助!

    【讨论】:

      猜你喜欢
      • 2016-12-24
      • 1970-01-01
      • 2013-12-13
      • 2019-09-22
      • 2022-08-10
      • 1970-01-01
      • 2019-08-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多