ionic info :
cli packages: (C:\Users\admin\AppData\Roaming\nvm\v9.5.0\node_modules)
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : android 7.0.0 windows 5.0.0
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
Node : v9.5.0
npm : 5.6.0
OS : Windows 10
Environment Variables:
ANDROID_HOME : C:\Users\admin\AppData\Local\Android\sdk
Misc:
backend : pro
cordova requirements :
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-26,android-25
Gradle: installed C:\Program Files\Android\Android Studio\gradle\gradle-3.2\bin\gradle
Requirements check results for windows:
Windows OS: installed Windows 10
MSBuild Tools: installed 14.0
Visual Studio: installed 14.0
Windows SDK: installed 10.0
Windows Phone SDK: installed 10.0
The project I am using is the tabs sample, here are the steps to reproduce this env :
- ionic start tabs tabs --cordova
- cd tabs\
- ionic cordova platform add android
- ionic cordova run android --device --livereload
At this point, everything runs smoothly.
Now if I try to set this up for windows 10, this is where it gets complicated, here is the only doc I found :
https://cordova.apache.org/docs/en/6.x/guide/platforms/win8/index.html
Next steps :
- adding <preference name=āwindows-target-versionā value=ā10.0ā/ in config.xml
- ionic cordova platform add windows
So now I have the CordovaApp.sln, the āsolutionā
I open it in VS 2017 and build with Debug ARM, and it seems that :
- The tab app is running
- there is no Javascript console
- DOM Explorator is empty
- Only output has logs, and it shows many errors with polyfill.js
'WWAHost.exe' (Script) : ChargƩ 'Script Code (MSAppHost/3.0)'.
Exception was thrown at line 1, column 7917 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a139e - JavaScript runtime error: 2
Exception was thrown at line 1, column 8843 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a138f - JavaScript runtime error: Unable to get property 'length' of undefined or null reference
Exception was thrown at line 1, column 9341 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1396 - JavaScript runtime error: Array.prototype.sort: argument is not a JavaScript object
Exception was thrown at line 1, column 8843 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a138f - JavaScript runtime error: Array.prototype.sort: 'this' is null or undefined
Exception was thrown at line 1, column 8815 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a138f - JavaScript runtime error: Array.prototype.forEach: 'this' is null or undefined
Exception was thrown at line 1, column 8815 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a138f - JavaScript runtime error: Array.prototype.map: 'this' is null or undefined
Exception was thrown at line 1, column 8815 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a138f - JavaScript runtime error: Array.prototype.filter: 'this' is null or undefined
Exception was thrown at line 1, column 8815 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a138f - JavaScript runtime error: Array.prototype.some: 'this' is null or undefined
Exception was thrown at line 1, column 8815 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a138f - JavaScript runtime error: Array.prototype.every: 'this' is null or undefined
Exception was thrown at line 1, column 8815 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a138f - JavaScript runtime error: Array.prototype.reduce: 'this' is null or undefined
Exception was thrown at line 1, column 8815 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a138f - JavaScript runtime error: Array.prototype.reduceRight: 'this' is null or undefined
Exception was thrown at line 1, column 8843 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a138f - JavaScript runtime error: Array.prototype.indexOf: 'this' is null or undefined
Exception was thrown at line 1, column 8843 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a138f - JavaScript runtime error: Array.prototype.lastIndexOf: 'this' is null or undefined
Exception was thrown at line 1, column 13496 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1389 - JavaScript runtime error: Number expected
Exception was thrown at line 1, column 26213 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1389 - JavaScript runtime error: Number.prototype.toPrecision: 'this' is not a Number object
Exception was thrown at line 2, column 3710 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1398 - JavaScript runtime error: RegExp.prototype.toString: 'this' is not a RegExp object
Exception was thrown at line 2, column 6756 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1608 - JavaScript runtime error: String.prototype.endsWith: first argument cannot be a RegExp
Exception was thrown at line 2, column 6781 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1608 - JavaScript runtime error: String.prototype.endsWith: first argument cannot be a RegExp
Exception was thrown at line 2, column 6756 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1608 - JavaScript runtime error: String.prototype.includes: first argument cannot be a RegExp
Exception was thrown at line 2, column 6781 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1608 - JavaScript runtime error: String.prototype.includes: first argument cannot be a RegExp
Exception was thrown at line 2, column 6756 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1608 - JavaScript runtime error: String.prototype.startsWith: first argument cannot be a RegExp
Exception was thrown at line 2, column 6781 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1608 - JavaScript runtime error: String.prototype.startsWith: first argument cannot be a RegExp
Exception was thrown at line 2, column 10675 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1600 - JavaScript runtime error: ArrayBuffer: cannot be called without the new keyword
Exception was thrown at line 2, column 10697 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13a5 - JavaScript runtime error: Array length must be a finite positive integer
Exception was thrown at line 2, column 18479 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1600 - JavaScript runtime error: [TypedArray]: cannot be called without the new keyword
Exception was thrown at line 2, column 18500 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13dc - JavaScript runtime error: Invalid offset/length when creating typed array
Exception was thrown at line 2, column 18527 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13da - JavaScript runtime error: Typed array constructor argument is invalid
Exception was thrown at line 2, column 18479 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1600 - JavaScript runtime error: [TypedArray]: cannot be called without the new keyword
Exception was thrown at line 2, column 18500 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13dc - JavaScript runtime error: Invalid offset/length when creating typed array
Exception was thrown at line 2, column 18527 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13da - JavaScript runtime error: Typed array constructor argument is invalid
Exception was thrown at line 2, column 18479 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1600 - JavaScript runtime error: [TypedArray]: cannot be called without the new keyword
Exception was thrown at line 2, column 18500 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13dc - JavaScript runtime error: Invalid offset/length when creating typed array
Exception was thrown at line 2, column 18527 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13da - JavaScript runtime error: Typed array constructor argument is invalid
Exception was thrown at line 2, column 18479 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1600 - JavaScript runtime error: [TypedArray]: cannot be called without the new keyword
Exception was thrown at line 2, column 18500 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13dc - JavaScript runtime error: Invalid offset/length when creating typed array
Exception was thrown at line 2, column 18527 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13da - JavaScript runtime error: Typed array constructor argument is invalid
Exception was thrown at line 2, column 18479 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1600 - JavaScript runtime error: [TypedArray]: cannot be called without the new keyword
Exception was thrown at line 2, column 18500 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13dc - JavaScript runtime error: Invalid offset/length when creating typed array
Exception was thrown at line 2, column 18527 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13da - JavaScript runtime error: Typed array constructor argument is invalid
Exception was thrown at line 2, column 18479 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1600 - JavaScript runtime error: [TypedArray]: cannot be called without the new keyword
Exception was thrown at line 2, column 18500 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13dc - JavaScript runtime error: Invalid offset/length when creating typed array
Exception was thrown at line 2, column 18527 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13da - JavaScript runtime error: Typed array constructor argument is invalid
Exception was thrown at line 2, column 18479 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1600 - JavaScript runtime error: [TypedArray]: cannot be called without the new keyword
Exception was thrown at line 2, column 18500 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13dc - JavaScript runtime error: Invalid offset/length when creating typed array
Exception was thrown at line 2, column 18527 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13da - JavaScript runtime error: Typed array constructor argument is invalid
Exception was thrown at line 2, column 18479 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1600 - JavaScript runtime error: [TypedArray]: cannot be called without the new keyword
Exception was thrown at line 2, column 18500 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13dc - JavaScript runtime error: Invalid offset/length when creating typed array
Exception was thrown at line 2, column 18527 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13da - JavaScript runtime error: Typed array constructor argument is invalid
Exception was thrown at line 2, column 18479 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a1600 - JavaScript runtime error: [TypedArray]: cannot be called without the new keyword
Exception was thrown at line 2, column 18500 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13dc - JavaScript runtime error: Invalid offset/length when creating typed array
Exception was thrown at line 2, column 18527 in ms-appx-web://io.ionic.starter/www/build/polyfills.js
0x800a13da - JavaScript runtime error: Typed array constructor argument is invalid
'WWAHost.exe' (Script) : ChargƩ 'ms-appx-web://io.ionic.starter/www/build/vendor.js'.
'WWAHost.exe' (Script) : ChargƩ 'ms-appx-web://io.ionic.starter/www/build/main.js'.
What I want is to have something to debug on windows, because if I have plugins incompatibility on my other app (which is obviously more complexe than tabs), I want to have a way to see it.
Questions :
- Is there a way to get the Javascript Console and the DOM Explorator to work ?
- Why polyfill.js has that much errors ? Did I miss something in some other docs ?
- Is there an other to debug on windows 10 phone ?