Ionic2:异常nativeEvalAndFetch:的ReferenceError:找不到变量:科尔多瓦
问题描述:
我试图在该命令模拟器中运行我的离子2应用程序:Ionic2:异常nativeEvalAndFetch:的ReferenceError:找不到变量:科尔多瓦
ionic emulate ios
,但我得到的死亡画面(白屏)。我试图与Safari浏览器开发者工具来调试应用程序,我得到这些信息:
exception nativeEvalAndFetch : ReferenceError: Can't find variable: cordova
在CoreSimulator目录如下:
答
已解决的问题删除了:
<base href="/">
从
你运行任何插件科尔多瓦中的index.html?是的,它必须在物理设备上运行,而不是在仿真器上运行 – Huiting
是的,我正在使用几个插件:“cordova-plugin-whitelist”, “cordova-plugin-console”, “cordova-plugin-statusbar”, “cordova-plugin-device”, “cordova-plugin-splashscreen”, “ionic-plugin-keyboard” 但在Ionic View应用程序中查看应用程序也是不可能的。通常cordova会向控制台记录一条消息,该应用程序当前正在以“模拟器或网络”版本运行,但没有错误。 – rakete
介意显示你的index.html代码? – Huiting