Closed robertnicjoo closed 5 years ago
Does it work for a new project created with cordova create
?
Did you remote debug your app to see if there are any Javascript errors in the console?
@janpio
1- cordova create
as I'm working on ionic app i have no idea about this command! :)
2- When I opened my app with VS17 there was no error in there but i didn't try to open in in browser :)
BUT
I've made a total new app with VS17 (100% cordova app) and when I tried to run it i got this:
The targeted toolset could not be found on disk. Please go to Visual Studio Setup and run a repair to reinstall it.
So based on that I am updating my VS now not sure if it will work or no or even if that's the issue, so please feel free to share your thoughts in the meantime.
1-
cordova create
as I'm working on ionic app i have no idea about this command! :)
Then please use it now to make sure your local system can create a working Cordova Windows app: cordova create
, cd ...
, cordova platform add windows
, cordova run windows
.
I've made a total new app with VS17 (100% cordova app) and when I tried to run it i got this:
You can only create pure Cordova apps with the Cordova CLI (as described above). Everything else uses software that is not directly supported by Apache Cordova. Visual Studio does not offer Cordova support out of the box, so you have to have installed some workload or feature that might claim Cordova support, but should not really be needed. (Actually Visual Studio does never have to be opened at all to create a Cordova Windows app - it only has to be installed correctly. Everything else can happen on the command line)
Then please use it now to make sure your local system can create a working Cordova Windows app:
cordova create
,cd ...
,cordova platform add windows
,cordova run windows
.
C:\Users\xxxxx\Desktop\New
λ cordova create
Directory not specified. See `cordova help`.
but with this
C:\Users\xxxxx\Desktop\New
λ cordova create fgh
Creating a new cordova project.
it creates it and i get this
I assume that means the blank issue isn't related to cordova but my ionic then! :)
Thanks for all helps <3
Yes, you just made sure that Cordova can actually build a successful working app on your system - so the problem is with your existing app somehow.
You can use https://www.microsoft.com/en-us/p/microsoft-edge-devtools-preview/9mzbfrmz0mnj?activetab=pivot:overviewtab to remote debug the running app and look at the console of the webview, maybe this can tell you what is going wrong there. (Super difficult to help here without having the actual app.)
I have Ionic app which so far i made android app and app is working just fine in fact it's released to google store as well, so everything is really fine with my app until I added
Cordova Windows Platform
in order to have another version of my app and now when I open my project on VS17 and run the app this is what I get:Blank window.
Info
And If I use VS17 I get blank screen.
Any idea what might be wrong?