Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Simulator showing blank white screen - Capacitor - Vue.js #2263

Closed
Fijiannn opened this issue Dec 16, 2019 · 6 comments
Closed

iOS Simulator showing blank white screen - Capacitor - Vue.js #2263

Fijiannn opened this issue Dec 16, 2019 · 6 comments

Comments

@Fijiannn
Copy link

Thanks for taking the time to check out my post. A little stuck here with my mobile app project using Capacitor and Vue.js

Long story short, I've got a proper Vue.js set up correctly because I tested with Node server and it functions exactly how we set it up. But when we use Capacitor plugin to boot our Vue.js product with Xcode the simulator shows blank. It does show the Capacitor splash screen and logs mention "Loading app at capacitor://localhost..." and "Web View Loaded" but nothing. I know I installed Capacitor right because I've retried multiple times and it's not rocket science either. It must be my main.js file

I've also attempted to debug the app using Safari web inspector and fixed all errors that Terminal showed me. We printed "hello" from our index.html file and it does show up on the debugger log when we boot the app and we also sneaked a quick label on the top left corner that says "hi" so we're seeing it read the index.html file but not getting any info from our main.js file. We tried to get console outputs and nothing. At first the safari debugger gave us a google fonts error but we fixed that and still nothing showing up.

QwXI0

@jcesarmobile
Copy link
Member

can you provide a sample app?

@jcesarmobile jcesarmobile added the needs reply needs reply from the user label Jan 9, 2020
@jcesarmobile
Copy link
Member

closing since there was no response.

Next time fill the template and provide a sample app

@jcesarmobile jcesarmobile removed the needs reply needs reply from the user label Feb 17, 2020
@shikhardb
Copy link

@Fijiannn How did you solve this issue?

@Nemesis19
Copy link

Nemesis19 commented Sep 18, 2020

give to webDir property in capacitor.config.json file the value "dist" then do npx cap copy

@TimVdWalle
Copy link

give to webDir property in capacitor.config.json file the value "dist" then do npx cap copy

this solution worked for me :)

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 10, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants