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
pechteltOP16mo ago
Patrick Boivin
Patrick Boivin16mo ago
Have you tried
composer require filament/filament:"^3.0-stable" -W
composer require filament/filament:"^3.0-stable" -W
pechtelt
pechteltOP16mo ago
Yes i did
Patrick Boivin
Patrick Boivin16mo ago
And what do you see in php artisan about?
pechtelt
pechteltOP16mo ago
Then i see the same error
LeandroFerreira
LeandroFerreira16mo ago
comment the App\Providers\Filament\AdminPanelProvider::class in your config/app.php and run php artisan about again
pechtelt
pechteltOP16mo ago
pechtelt
pechteltOP16mo ago
I already did
pechtelt
pechteltOP16mo ago
LeandroFerreira
LeandroFerreira16mo ago
comment // the line 183
pechtelt
pechteltOP16mo ago
LeandroFerreira
LeandroFerreira16mo ago
what is the filament/filament version in your composer.json?
pechtelt
pechteltOP16mo ago
"filament/filament": "^2.17", Thats why it is still on 2.17 thats because i get also this error when composer update
LeandroFerreira
LeandroFerreira16mo ago
yep.. run composer require filament/filament:"^3.0-stable" -W
pechtelt
pechteltOP16mo ago
LeandroFerreira
LeandroFerreira16mo ago
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
pechteltOP16mo 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
LeandroFerreira16mo ago
can you try?
pechtelt
pechteltOP16mo ago
I will! Thanks for you help right now appriecate it, wil come back after!
LeandroFerreira
LeandroFerreira16mo ago
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
pechteltOP16mo ago
Thanks after i removed them right?
LeandroFerreira
LeandroFerreira16mo ago
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
pechteltOP16mo ago
thanks i will!
pechtelt
pechteltOP16mo ago
Thanks @Leandro Ferreira i have removed the packages and install them after that worked
pechtelt
pechteltOP16mo 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
LeandroFerreira16mo ago
hum, yes.. did you have a custom theme on v2?
pechtelt
pechteltOP16mo ago
No just the basic
LeandroFerreira
LeandroFerreira16mo ago
weird console errors?
pechtelt
pechteltOP16mo ago
pechtelt
pechteltOP16mo ago
I think i see
pechtelt
pechteltOP16mo 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
LeandroFerreira16mo ago
can you share your vite.config.js?
pechtelt
pechteltOP16mo 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
LeandroFerreira16mo ago
do you have these files in the resource folder?
pechtelt
pechteltOP16mo ago
pechtelt
pechteltOP16mo ago
I have change it to pointing to the right file but same troubles
LeandroFerreira
LeandroFerreira16mo ago
not sure what is the issue.. php artisan filament:upgrade compiles assets what about app/Providers/AppServiceProvider.php?
pechtelt
pechteltOP16mo ago
LeandroFerreira
LeandroFerreira16mo ago
remove it
pechtelt
pechteltOP16mo ago
That was the issue right?
pechtelt
pechteltOP16mo ago
Looks better! Should I have known that or read that somewhere?
LeandroFerreira
LeandroFerreira16mo ago
actually you had a custom theme/css on v2
pechtelt
pechteltOP16mo ago
Really? Sorry mate for my fault
LeandroFerreira
LeandroFerreira16mo ago
no worries.. if you need to customize on v3, follow this section https://filamentphp.com/docs/3.x/panels/themes
pechtelt
pechteltOP16mo ago
Great, thanks for your help!
ambonboy.
ambonboy.12mo ago
I had the same problem. Turns out when I removed the 2 plugins I was using the upgrade proceeded with no problems.
Want results from more Discord servers?
Add your server