Jetstream Components Not Found After Update Laravel version 10 to 11
PoojaJadav opened this issue · comments
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:
- Verified Jetstream is installed and updated to the latest version compatible with Laravel 11.
- Re-published Jetstream views using php artisan vendor:publish --tag=jetstream-views.
- Cleared Laravel's view and configuration cache using php artisan view:clear, php artisan cache:clear, and php artisan config:clear.
- Checked component files in resources/views/vendor/jetstream/components/.
- Verified component usage in Blade templates is correct ().
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.