2016-08-11 179 views
0

我试图在该命令模拟器中运行我的离子2应用程序:Ionic2:异常nativeEvalAndFetch:的ReferenceError:找不到变量:科尔多瓦

ionic emulate ios 

,但我得到的死亡画面(白屏)。我试图与Safari浏览器开发者工具来调试应用程序,我得到这些信息:

enter image description here

exception nativeEvalAndFetch : ReferenceError: Can't find variable: cordova

enter image description here

在CoreSimulator目录如下:

enter image description here

+0

你运行任何插件科尔多瓦中的index.html?是的,它必须在物理设备上运行,而不是在仿真器上运行 – Huiting

+0

是的,我正在使用几个插件:“cordova-plugin-whitelist”, “cordova-plugin-console”, “cordova-plugin-statusbar”, “cordova-plugin-device”, “cordova-plugin-splashscreen”, “ionic-plugin-keyboard” 但在Ionic View应用程序中查看应用程序也是不可能的。通常cordova会向控制台记录一条消息,该应用程序当前正在以“模拟器或网络”版本运行,但没有错误。 – rakete

+0

介意显示你的index.html代码? – Huiting

回答

1

已解决的问题删除了:

<base href="/">