jetstrap
jetstrap copied to clipboard
can't access property "user", _ctx.$page.props.auth is undefined
Describe the bug
I complety installed a fresh Laravel v8.0.8 with Jetstream and Jetstrap (w/o Teams; w/ Breeze),
if I try to open the page /
, I get a error Uncaught (in promise) TypeError: can't access property "user", _ctx.$page.props.auth is undefined
.
Expected behavior I excepted a redirect to the login.
Screenshots
Desktop (please complete the following information):
- OS: Windows 10
- Browser: chrome, firefox & edge
- Version: latest
Is there any trick that I need to do?
This /
is the home page so you shouldn't be redirected, question is why is user exposed on that page without an Auth::check()? Ok, am on it, quick question: are you using the default template or a preset, Vue or livewire?
Default Template from Jetstrap or Jetstream?
I installed it like your readme infos, I've used php artisan jetstream:install inertia
& php artisan jetstrap:swap inertia
.
I fixed it with removing .auth
, after this it worked. Idk I use Laravel 8 may this is the conflict producer 🤣