Class "Filament\PanelProvider" not found

I have set my: "minimum-stability": "dev", and ran this composer require filament/upgrade:"^3.0-stable" -W --dev vendor/bin/filament-v3 and when i will do composer update i get the error Class "Filament\PanelProvider" not found How can i fix this?
46 Replies
pechtelt
pechteltOP2y ago
Patrick Boivin
Have you tried
composer require filament/filament:"^3.0-stable" -W
composer require filament/filament:"^3.0-stable" -W
pechtelt
pechteltOP2y ago
Yes i did
Patrick Boivin
And what do you see in php artisan about?
pechtelt
pechteltOP2y ago
Then i see the same error
LeandroFerreira
comment the App\Providers\Filament\AdminPanelProvider::class in your config/app.php and run php artisan about again
pechtelt
pechteltOP2y ago
pechtelt
pechteltOP2y ago
I already did
pechtelt
pechteltOP2y ago
LeandroFerreira
comment // the line 183
pechtelt
pechteltOP2y ago
LeandroFerreira
what is the filament/filament version in your composer.json?
pechtelt
pechteltOP2y ago
"filament/filament": "^2.17", Thats why it is still on 2.17 thats because i get also this error when composer update
LeandroFerreira
yep.. run composer require filament/filament:"^3.0-stable" -W
pechtelt
pechteltOP2y ago
LeandroFerreira
maybe plugins? Some plugins you're using may not be available in v3 just yet. You could temporarily remove them from your composer.json file until they've been upgraded...
pechtelt
pechteltOP2y ago
I will remove them and try again (already did that) but also when i also want to update curator (who has an v3 version) i still get the same error So i think i should remove them, upgrade then i think? And then install them again?
LeandroFerreira
can you try?
pechtelt
pechteltOP2y ago
I will! Thanks for you help right now appriecate it, wil come back after!
LeandroFerreira
nice.. you can try the upgrade again..
composer require filament/upgrade:"^3.0-stable" -W --dev
vendor/bin/filament-v3
composer require filament/filament:"^3.0-stable" -W --no-update
composer update
composer require filament/upgrade:"^3.0-stable" -W --dev
vendor/bin/filament-v3
composer require filament/filament:"^3.0-stable" -W --no-update
composer update
pechtelt
pechteltOP2y ago
Thanks after i removed them right?
LeandroFerreira
since they are available in v3, the script should work. So you can try the upgrade again. If you have the same error, try to remove them..
pechtelt
pechteltOP2y ago
thanks i will!
pechtelt
pechteltOP2y ago
Thanks @Leandro Ferreira i have removed the packages and install them after that worked
pechtelt
pechteltOP2y ago
i think it is almost working, last thing is that my styling i a bit weird It seems like he won't import the filament styling
LeandroFerreira
hum, yes.. did you have a custom theme on v2?
pechtelt
pechteltOP2y ago
No just the basic
LeandroFerreira
weird console errors?
pechtelt
pechteltOP2y ago
pechtelt
pechteltOP2y ago
I think i see
pechtelt
pechteltOP2y ago
I taught it picked the wrong file / class. I will try to do it again and not updating livewire this time Still having the same issue Also did this: Finally, you must run php artisan filament:install to finalize the Filament v3 installation. This command must be run for all new Filament projects.
LeandroFerreira
can you share your vite.config.js?
pechtelt
pechteltOP2y ago
import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; export default defineConfig({ plugins: [ laravel({ input: [ 'resources/css/filament/filament/app.css', 'resources/js/filament/filament/app.js' ], refresh: true, }), ], });
LeandroFerreira
do you have these files in the resource folder?
pechtelt
pechteltOP2y ago
pechtelt
pechteltOP2y ago
I have change it to pointing to the right file but same troubles
LeandroFerreira
not sure what is the issue.. php artisan filament:upgrade compiles assets what about app/Providers/AppServiceProvider.php?
pechtelt
pechteltOP2y ago
LeandroFerreira
remove it
pechtelt
pechteltOP2y ago
That was the issue right?
pechtelt
pechteltOP2y ago
Looks better! Should I have known that or read that somewhere?
LeandroFerreira
actually you had a custom theme/css on v2
pechtelt
pechteltOP2y ago
Really? Sorry mate for my fault
LeandroFerreira
no worries.. if you need to customize on v3, follow this section https://filamentphp.com/docs/3.x/panels/themes
pechtelt
pechteltOP2y ago
Great, thanks for your help!
ambonboy.
ambonboy.14mo ago
I had the same problem. Turns out when I removed the 2 plugins I was using the upgrade proceeded with no problems.

Did you find this page helpful?