简体   繁体   English

尝试在Windows的调试中启动时,Ionic Visual Studio 2015模板获取``角度未定义''错误

[英]Ionic Visual Studio 2015 template get 'Angular is undefined' error when trying to start in debug for Windows

I am just starting to look at the Visual Studio tools for Cordova, and the Ionic template. 我只是开始看一下Cordova的Visual Studio工具和Ionic模板。

Build and debugging (F5) for Android and IOS (using the ripple emulator) seems to work fine, however, I cannot get this to work for Windows. 用于Android和IOS的构建和调试(F5)(使用波纹模拟器)似乎可以正常工作,但是,我无法在Windows上正常运行。 I am using VS 2015, on a Windows 8.1 machine. 我在Windows 8.1机器上使用VS 2015。

For Windows (any CPU and 64 bit) I get a problem with the MSVSMON.exe, but this I will ask in a separate post. 对于Windows(任何CPU和64位),MSVSMON.exe出现问题,但是我将在另一篇文章中提出。

So, I try and run as x86, and I get the following errors (local device) 因此,我尝试以x86运行,并且收到以下错误(本地设备)

SCRIPT5009: Unhandled exception at line 8, column 1 in 
ms-appx://io.cordova.myappe2785d518e9f4f6ea03055878dd7a400/www/js/app.js
0x800a1391 - JavaScript runtime error: 'angular' is undefined
app.js (8,1)
HTML1300: Navigation occurred.
index.html
APPHOST9601: Can't load <http://code.ionicframework.com/1.0.0-rc.5/css/ionic.css>. An application can't load remote web content in the   
local context.
index.html
APPHOST9601: Can't load <http://code.ionicframework.com/1.0.0-rc.5/js/ionic.bundle.min.js>. An application can't load remote web content in the local context.
index.html

SCRIPT5009: Unhandled exception at line 1, column 1 in ms-appx://io.cordova.myappe2785d518e9f4f6ea03055878dd7a400/www/js/controllers.js
0x800a1391 - JavaScript runtime error: 'angular' is undefined
controllers.js (1,1)

Anybody have any ideas why this doesn't work? 任何人都有任何想法为什么这不起作用?

Thanks in advance 提前致谢

First go to http://code.ionicframework.com 首先去http://code.ionicframework.com

Download the latest zip (currently ionic-1.1.1) ... extract it somewhere then copy the contents of the ionic-1.1.1\\release folder to the www of the project. 下载最新的zip(当前为ionic-1.1.1)...将其解压缩到某个位置,然后将ionic-1.1.1 \\ release文件夹的内容复制到项目的www。

Then in the index.html of the project replace ionic.css and ionic.bundle.min.js with the ones from the files you copied. 然后在项目的index.html中,将ionic.css和ionic.bundle.min.js替换为复制文件中的文件。

The last step is to download winstore-jscompat and add a refrence to the top of index.html 最后一步是下载winstore-jscompat并将引用添加到index.html的顶部

That's it (u may not need all the files from the \\release of the zip) 就是这样(您可能不需要zip \\ release中的所有文件)

Starting index.html 开始index.html 在此处输入图片说明

index.html after index.html之后 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM