laravel / jetstream

Tailwind scaffolding for the Laravel framework.

Home Page:https://jetstream.laravel.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  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 ().

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.