How to work with Ionic 2 in Visual Studio 2015?


#1

I created a ionic starter project following Ionic V2 Guide . It also works perfectly with ionic serve from CLI.

However, when I load it as an existing cordova app project in Visual Studio 15, I get following errors at runtime:

angular2-polyfills.js:916 Uncaught TypeError: Cannot set property XMLHttpRequest of [object Object] which has only a getter

decorators.ts:245Uncaught reflect-metadata shim is required when using class decorators


Visual Studio 2015.2 and Ionic v2 - anyone?
#2

I have the same problem, here my situation:

├── angular2@2.0.0-beta.15
├── del@2.2.0
├── es6-shim@0.35.0
├── gulp@3.9.1
├── gulp-watch@4.3.5
├── ionic-angular@2.0.0-beta.6
├── ionic-gulp-browserify-typescript@1.0.1
├── ionic-gulp-fonts-copy@1.0.0
├── ionic-gulp-html-copy@1.0.0
├── ionic-gulp-sass-build@1.0.0
├── ionic-gulp-scripts-copy@1.0.1
├── ionic-native@1.1.1
├── ionicons@3.0.0-alpha.3
├── reflect-metadata@0.1.2
├── run-sequence@1.1.5
├── rxjs@5.0.0-beta.2
└── zone.js@0.6.12

my system information:

Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS: Windows 8.1
Node Version: v0.12.2


#3

I just shifted back to Ionic-1. Apparently, it is too much to learn (Angular 2 and Ionic 2) in very less time for production release.


#4

Did anyone find on this?
Facing the same issue


#5

This have been discussed here: