admin管理员组文章数量:1322178
I keep getting an error with Angular and Ionic, running on iOS simulator.
When running
ionic run ios
It was launching on the simulator fine. Then I pressed the home button on the simulator and got
exception nativeEvalAndFetch : ReferenceError: Can't find variable: cordova
I was testing for deeplinking on my ionic app and this broke it.
I keep getting an error with Angular and Ionic, running on iOS simulator.
When running
ionic run ios
It was launching on the simulator fine. Then I pressed the home button on the simulator and got
exception nativeEvalAndFetch : ReferenceError: Can't find variable: cordova
I was testing for deeplinking on my ionic app and this broke it.
Share Improve this question edited Nov 19, 2016 at 0:05 eightShirt 1,4473 gold badges16 silver badges31 bronze badges asked Jan 5, 2016 at 17:51 Chris HumeChris Hume 1851 silver badge11 bronze badges2 Answers
Reset to default 5In order to fix, I put
<script src="cordova.js"></script>
In my header. I had
<script src="phonegap.js"></script>
So now I have both in the header and it is working fine. Not sure if I need both or not, but it works.
Also, my phonegap.js lives in my app folder. So I add to the gruntfile so it will copy over when I grunt build.
This error occurred for me when I removed a plugin on another branch. What I had to do is manually remove plugin and remove plugin info from package and config.
本文标签: javascriptexception nativeEvalAndFetch ReferenceError Can39t find variable cordovaStack Overflow
版权声明:本文标题:javascript - exception nativeEvalAndFetch: ReferenceError: Can't find variable: cordova - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742115448a2421446.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论