I am trying to create an application that will work for iOS, Android and Windows. I posted a question in one of the other threads but it seems that I am unable to build my an Ionic 2 RC application for Windows 10 even from the command line.
To begin with, I would like to use Visual Studio to build and deploy the app for Windows. this will allow me to do debugging from within VS (will build iOS and Android differently). I run the build script within VS and it appears to work however when I go to run the app to debug or deploy from VS I get several errors. I believe the errors arrive from the following one:
Error TS1204 Cannot compile modules into ‘es2015’ when targeting ‘ES5’ or lower. TypeScript Virtual Projects 1 Active
After that I have several TS2307 errors (Cannot find Module). There are also a lot of TS2339 errors (Property … does not exist)
Now I try to run the application from the command line using: ionic run windows I get:
Exception calling “ActivateApplication” with “4” argument(s): "The remote procedure call failed. (Exception from
At C:\Users\jhoffman\Documents\ionictest\test12\platforms\windows\cordova\lib\WindowsStoreAppUtils.ps1:164 char:5
Finally I try to build the app and install it using: ionic build windows. This builds the appx packages and I am able to successfully install it but when I try to run the app it immediately crashes. In the application logs I get the following error:
Activation of the app com.ionicframework.test12971464_h35559jr9hy9m!com.ionicframework.test12971464 for the Windows.Launch contract failed with error: The remote procedure call failed…
I create the app using the following command: ionic start test --v2
I then add the windows platform with this command: ionic platform add windows
I then add the following line to the config.xml file to build a Windows 10 Universal app:
<preference name="windows-target-version" value="10.0" />
Does anyone have any suggestions on how I can build a Windows 10 app with Ionic 2 RC? Am I missing a step somewhere?
EDIT: Additional information I am using a Windows 10 Pro and Windows 10 Enterprise machines both with Windows 10 version 1607.