php artisan jetstream:install intertia (inertia or livewire, not both!) npm install npm run dev
Sep 8, 2020
11
Level 2
Laravel 8: Jetstream; Livewire; Inertia error
I just performed a fresh installation of Laravel 8.0.0 and I am following the DOCs to get a login/registration page. I executed these two commands successfully
composer require laravel/jetstream
php artisan jetstream:install livewire/inertia
but I am getting this error:
Error
Class 'Inertia\Inertia' not found
http://127.0.0.1:8000/
Laravel\Jetstream\Http\Middleware\ShareInertiaData::handle
vendor/laravel/jetstream/src/Http/Middleware/ShareInertiaData.php:23
Did I miss a step?
Level 1
The Laravel 8 docs not clear. You can fix it by following commands:
php artisan jetstream:install livewire
npm install && npm run dev
Reference: https://github.com/laravel/jetstream#installation
6 likes
Please or to participate in this conversation.