MSBUILD : cordova-build error : TypeError: Cannot read property 'indexOf' of undefined

这一生的挚爱 提交于 2019-12-24 08:18:37

问题


This is not a runtime error but a build error in the following configuration

Windows 10 version 1511,(swedish) Visual studio 2015 Community update 3 Cordova tools for Visual studio version 6.1.1 AngularJs 1.5.8

The error only arises when trying to build for 'Windows AnyCPU' or Windows Phone universal not for the other platforms.I suspect that it is the angular object which is undefined but I'm not sure of this. The only information is Line 1 and Col 1 but not in what file.


回答1:


Because I walked right into it; In VS2015(and assumable everywhere else) if you have a blank domain access rule, it will trigger it. NOTE: same goes for the XML



来源:https://stackoverflow.com/questions/39084692/msbuild-cordova-build-error-typeerror-cannot-read-property-indexof-of-und

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!