MSBUILD:cordova-build错误:TypeError:无法读取未定义的属性"indexOf" [英] MSBUILD : cordova-build error : TypeError: Cannot read property 'indexOf' of undefined

查看:144
本文介绍了MSBUILD:cordova-build错误:TypeError:无法读取未定义的属性"indexOf"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这不是运行时错误,而是以下配置中的构建错误

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

Windows 10版本1511,(瑞典语) Visual Studio 2015社区更新3 适用于Visual Studio 6.1.1版的Cordova工具 AngularJs 1.5.8

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

该错误仅在尝试为非其他平台的Windows AnyCPU或Windows Phone通用版本构建时出现.我怀疑这是未定义的角度对象,但我不确定.唯一的信息是第1行和第1行,但不在哪个文件中.

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.

推荐答案

因为我走进去了;在VS2015中(以及在其他所有地方都可以使用的),如果您有一个空白的域访问规则,它将触发它.注意:XML

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

这篇关于MSBUILD:cordova-build错误:TypeError:无法读取未定义的属性"indexOf"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆