If I remote debug to x64 the app side loads through the debugger. I can click around, do everything, no problem.
BUT once I disconnect the debug process, and then start the app on the surface, it flashes open, then closes... the error from that closing seems to be related to Windows not being defined( i assume from the base) and then creating DB connections off of that.
I thought maybe it was a change in the debugging setup, so I went through the whole process of side loading it, and the same thing happens.
I traced it down to Cordova not including the Base.js file correctly, there seem to be pathing issues, but only when i run it on the surface, without the debugger... so I'm confused.
Of course, since i side loaded it onto the x64 surface, I thought, I could sideload the app onto the Surface RT, which i did, and guess what, it works fine there.
So why would the same app, side loaded on RT work, but not on x64.
Is there something different in the Base file its trying to use, maybe it exists for one but not the other?
If I run the index.html in chrome, i can see more errors, so debugging with that I see a few more things.
Here is the code in the cordova.js file thats messing up the include (line 1449 in the cordova js i have)
The x64 is firing this include - the else
scriptElem.src = "//Microsoft.WinJS.1.0/js/base.js";
When I inspect it loading locally on my machine, its using
If i hard code a script tag to the WinJS/js/base.js that error goes away from the console, but then i am still seeing the error for Windows. is not defined.
Now, with the base.js fixed, its not showing errors in the windows events log, but its still crashing on start up.