我已将现有的 Ionic 应用程序导入 VS 2015 Update 1。我正在使用最新的 Tools for Apache Cordova Update 7。当我构建应用程序时,当它尝试执行hooks\after_prepare\010_add_platform_class时出现以下错误.js文件。如果我删除该文件,VS 将构建并执行该应用程序。这是 TACO 中的错误还是我做错了什么?
Executing "after_prepare" hook for all plugins.
1> Running command: "C:\Program Files (x86)\nodejs\node.exe" D:\SampleApp\hooks\after_prepare\010_add_platform_class.js D:\SampleApp
1>MSBUILD : cordova-build error : net.js:633
1> net.js:633
1>MSBUILD : cordova-build error : throw new TypeError('invalid data');
1> throw new TypeError('invalid data');
1>MSBUILD : cordova-build error : ^
1> ^
1>MSBUILD : cordova-build error : TypeError: invalid data
1> TypeError invalid data
1>MSBUILD : cordova-build error : at Socket.write (net.js:633:11)
1> at Socket.write (net.js:633:11)
1>MSBUILD : cordova-build error : at Object.<anonymous> (D:\SampleApp\hooks\after_prepare\010_add_platform_class.js:90:22)
1> at Object.<anonymous> (D:\SampleApp\hooks\after_prepare\010_add_platform_class.js:90:22)
1>MSBUILD : cordova-build error : at Module._compile (module.js:460:26)
1> at Module._compile (module.js:460:26)
1>MSBUILD : cordova-build error : at Object.Module._extensions..js (module.js:478:10)
1> at Object.Module._extensions..js (module.js:478:10)
1>MSBUILD : cordova-build error : at Module.load (module.js:355:32)
1> at Module.load (module.js:355:32)
1>MSBUILD : cordova-build error : at Function.Module._load (module.js:310:12)
1> at Function.Module._load (module.js:310:12)
1>MSBUILD : cordova-build error : at Function.Module.runMain (module.js:501:10)
1> at Function.Module.runMain (module.js:501:10)
1>MSBUILD : cordova-build error : at startup (node.js:129:16)
1> at startup (node.js:129:16)
1>MSBUILD : cordova-build error : at node.js:814:3
1> at node.js:814:3
1> Command finished with error code 1: C:\Program Files (x86)\nodejs\node.exe D:\SampleApp\hooks\after_prepare\010_add_platform_class.js,D:\SampleApp
1>MSBUILD : cordova-build error : Error: Hook failed with error code 1: D:\SampleApp\hooks\after_prepare\010_add_platform_class.js
1> Error Hook failed with error code 1: D:\SampleApp\hooks\after_prepare\010_add_platform_class.js