spatie / laravel-ignition

A beautiful error page for Laravel apps
https://flareapp.io/ignition
MIT License
436 stars 64 forks source link

"Spatie\ErrorSolutions\SolutionProviderRepository" not found on 2.8.0 #204

Open benjaminhaeberli opened 1 week ago

benjaminhaeberli commented 1 week ago

Hi guys! I tried to upgrade Ignition from 2.7.0 to 2.8.0 on my Laravel/Filament app but an error occurs. If I downgrade it to 2.7.0, it works again.

The error is in in C:\Herd\admin.nanou\vendor\spatie\laravel-ignition\src\IgnitionServiceProvider.php (line 140)

$ignitionConfig = (new IgnitionConfig())
    ->merge(config('ignition', []))
    ->loadConfigFile();
$solutionProviders = $this->getSolutionProviders();
- $solutionProviderRepository = new SolutionProviderRepository($solutionProviders);
$this->app->singleton(IgnitionConfig::class, fn () => $ignitionConfig);
$this->app->singleton(SolutionProviderRepositoryContract::class, fn () => $solutionProviderRepository);
⌨️ composer.json ```json "require": { "php": "^8.3", "aymanalhattami/filament-context-menu": "^1.0.2", "barryvdh/laravel-dompdf": "^2.2.0", "codezero/laravel-unique-translation": "^4.3.1", "endroid/qr-code": "^5.0.9", "fedeisas/laravel-mail-css-inliner": "^5.3.0", "filament/filament": "^3.2.92", "filament/forms": "^3.2.92", "filament/notifications": "^3.2.92", "filament/spatie-laravel-translatable-plugin": "^3.2.92", "gamez/typed-collection": "^6.1", "khanamiryan/qrcode-detector-decoder": "^2.0.2", "larabug/larabug": "^3.1", "laravel-notification-channels/telegram": "^5.0", "laravel/framework": "^10.48.14", "laravel/sanctum": "^3.3.3", "laravel/tinker": "^2.9.0", "livewire/livewire": "^3.5.1", "ramsey/uuid": "^4.7.6", "setasign/fpdf": "^1.8.6", "setasign/fpdi": "^2.6", "spatie/image": "^3.6.4", "spatie/laravel-permission": "^5.11.1", "spatie/laravel-translatable": "^6.7.1", "webbingbrasil/filament-copyactions": "^3.0.1" }, "require-dev": { "barryvdh/laravel-debugbar": "^3.13.5", "doctrine/dbal": "^3.8.6", "driftingly/rector-laravel": "^0.20.0", "fakerphp/faker": "^1.23.1", "filament/upgrade": "3.0-stable", "larastan/larastan": "^2.9.7", "laravel/pint": "^1.16.1", "laravel/telescope": "^4.17.6", "mockery/mockery": "^1.6.12", "nunomaduro/collision": "^7.10.0", "nunomaduro/phpinsights": "^2.11", "pestphp/pest": "^2.34.8", "pestphp/pest-plugin-laravel": "^2.4", "pestphp/pest-plugin-livewire": "^2.1", "pestphp/pest-plugin-type-coverage": "^2.8.3", "pestphp/pest-plugin-watch": "^2.1", "phpunit/phpunit": "^10.5.17", "rector/rector": "^0.15.25", "spatie/laravel-ignition": "2.7.0" } ```
📷 Error screenshot ![image](https://github.com/spatie/laravel-ignition/assets/33510361/dec6cd94-c6b4-4449-bc7d-968d8c21eb1d)
aroutinr commented 6 days ago

Same here, but downgrading won't fix the problem. Any ideas?

deanblackborough commented 2 days ago

Same here, affecting all my production environments and rolling back to 2.7.0 is not helping

aroutinr commented 2 days ago

For everyone facing this issue, I dig into it and in my case it was due to folder/file permissions

egorix commented 2 days ago

I have exactly the same issue. But I haven't figure it out what kind of permissions are wrong. Could you advise @aroutinr ?

mlewist commented 1 day ago

Same here as the above - downgrading hasn't fixed

SenaJp commented 19 hours ago

Guys, I had the same problem on my server, I tried every possible way to solve the problem. In the end, I reset my horizon and it worked. I hope help someone!

codedev85 commented 41 minutes ago

Currently having the same issue does anyone have a fix to this error ?