laravel / jetstream

Tailwind scaffolding for the Laravel framework.
https://jetstream.laravel.com
MIT License
3.93k stars 809 forks source link

Jetstream Components Not Found After Update Laravel version 10 to 11 #1505

Closed PoojaJadav closed 2 weeks ago

PoojaJadav commented 2 weeks ago

Jetstream Version

5.x

Jetstream Stack

Livewire

Laravel Version

11.x

PHP Version

8.2

Database Driver & Version

No response

Description

After running Laravel Shift to upgrade my project from Laravel 10 to Laravel 11, I encountered issues with Jetstream components not being found. Specifically, I receive the following error for all Jetstream components:

Unable to locate a class or view for component [jet-validation-errors].

Steps To Reproduce

Troubleshooting Steps Taken:

  1. Verified Jetstream is installed and updated to the latest version compatible with Laravel 11.
  2. Re-published Jetstream views using php artisan vendor:publish --tag=jetstream-views.
  3. Cleared Laravel's view and configuration cache using php artisan view:clear, php artisan cache:clear, and php artisan config:clear.
  4. Checked component files in resources/views/vendor/jetstream/components/.
  5. Verified component usage in Blade templates is correct ().
driesvints commented 2 weeks ago

We haven't used the jet- prefixed since the Jetstream v3 version: https://github.com/laravel/jetstream/blob/5.x/UPGRADE.md#jetstream-3x-livewire-stack

I believe there's a couple of missed steps from Jetstream's upgrade guide in your process migrating to Laravel v11. Note that Shift might not account for all of these.