Error while upgrading from v2 to v3
I get the following error when I am trying to upgrade from v2 to v3. How can I resolve this?
10 Replies
Check your last two lines: you require Livewire v2 in your composer file and need to upgrade it to 3
From the docs I see that I have to first upgrade filament before I upgrade Livewire. I am currently using Livewire v2.
Not sure where you found this in the docs? You cannot upgrade to Filament 3 with LW2 as it requires version 3
There is where I saw it. Let me try your suggestion
I think upgrade as in: Make your code work with Filament v3. Not upgrading the package.
I found that line quite misleading as well - interpreted it as "upgrade filament before upgrading livewire"
I also found that line misleading and if I try to run "composer require livewire/livewire "^3.0"" to upgrade Livewire first, I get the following error:
Do I need to change the Filament version in Composer.json before upgrading Livewire? Thanks!
Drop livewire from you composer.json and just upgrade Filament. Filament has a dependency on livewire and will therefore handle its installation and updates for you. No need to require them both in composer.
After Filament is upgraded is there a need to run the automatic upgrade for Livewire "php artisan livewire:upgrade"?
honestly don't know. just create another branch, run the command and if everything is ok, then you can go back to your upgrade branch and run it there.