F
Filamentβ€’2w ago
evarest

Target class [blade.compiler] does not exist

I have Laravel 11.9 and have issues with using composer. If I try to user composer install, composer upgrade or even php artisan filament:upgrade, I get the following error message: Target class [blade.compiler] does not exist. I have removed the vendor folder, to no avail. I still get the same error when I use composer. The following command also gets this error: php artisan package:discover I have added "BladeUI\Icons\BladeIconsServiceProvider" to laravel - dont-discover in composer.json, but that is not a good solution (as it is still needed in filament) and it did not work anyways. I have come to the end of my trick box. Any ideas here? Thanks!
Solution:
asking a questions sometimes triggers solutions πŸ™‚ I managed to figure out what was causing the seemingly random issues. I had in app.php added 'providers' => [...
Jump to solution
1 Reply
Solution
evarest
evarestβ€’2w ago
asking a questions sometimes triggers solutions πŸ™‚ I managed to figure out what was causing the seemingly random issues. I had in app.php added 'providers' => [ ], This because I got an error and someone suggested adding a provider here. However in Laravel 11.9, apparently adding an empty provider array gives lots of issues. After removing this, removing vendor folder and doing composer install, all worked again. Hope this helps someone down the line!
Want results from more Discord servers?
Add your server