nascent-africa / jetstrap

A Laravel 8 package to easily switch TailwindCSS resources generated by Laravel Jetstream and Breeze to Bootstrap 4.
https://github.com/nascent-africa/jetstrap
MIT License
708 stars 120 forks source link

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

Open REJack opened 3 years ago

REJack commented 3 years ago

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):

Is there any trick that I need to do?

tsommie commented 3 years ago

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?

REJack commented 3 years ago

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 commented 3 years ago

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