jetstrap icon indicating copy to clipboard operation
jetstrap copied to clipboard

can't access property "user", _ctx.$page.props.auth is undefined

Open REJack opened this issue 2 years ago • 3 comments

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 grafik

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: chrome, firefox & edge
  • Version: latest

Is there any trick that I need to do?

REJack avatar Jul 12 '21 17:07 REJack

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?

tsommie avatar Jul 14 '21 09:07 tsommie

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.

REJack avatar Jul 14 '21 10:07 REJack

I fixed it with removing .auth, after this it worked. Idk I use Laravel 8 may this is the conflict producer 🤣

REJack avatar Jul 14 '21 10:07 REJack