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:Jump to 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' => [...
1 Reply
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' => [
],
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!