Closed mahouha closed 1 year ago
I have a project and tried open it from my Android device, got blank page too.
I experience this when I develop locally and then try to preview with valet share
. I think this is more due to Vite trying to load assets over HTTP, but Ngrok runs your environment on HTTPS, so your assets are never loaded.
The way I solve this when I need it, is I fully build the assets (npm run build
), secure the local with valet secure
, and force HTTPS in a service provider $this->app['url']->forceScheme('https');
. It runs fine, though I should invest more time into resolving this without this workaround.
Also, maybe this will help: https://freek.dev/2276-making-vite-and-valet-play-nice-together
@mahouha remember to close the issue if this has been resolved.
Hi there,
Thanks for reporting the problem you are encountering, but it looks like this is a question that may be better suited for a support channel. We only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use the functionality provided by this repository, you can try one of the following channels:
However, this issue will not be locked, and everyone is free to discuss solutions to your problem!
Versions:
inertiajs/inertia-laravel
version: 0.6.3@inertiajs/inertia
version: 0.11.0@inertiajs/inertia-vue3
version: 0.6.0Describe the problem:
I have a laravel 9 app builded with
vue3
,inertia-laravel
,inertiajs
andlaravel-vite
, it works perfetct on PC but when I try to open it in mobile device It show a blank page without any console log.NB : when I toggle device toolbar to mobile in a navigator it works correctly but in real mobile no ( I tested on different navigators)
I can't fix this issue come from
inertiajs\inertia-vue3
orinertiajs/inertia-laravel
Steps to reproduce:
route :
app.js
WelcomeVue.vue (under pages folder) :
and app.blade.php :