stefangalescu / statamic-heroicons

Use and easily customize Heroicons in your Statamic templates
MIT License
2 stars 2 forks source link

Does not work with Laravel 11 #8

Open aaw0 opened 1 month ago

aaw0 commented 1 month ago

When using Laravel 11 and Statamic 5, I get following error:

Interface "Facade\IgnitionContracts\ProvidesSolution" not found

frknasir commented 1 month ago

Same error here

naabster commented 1 month ago

The addon checks if antlers runtime is "runtime". With Statanmic 5 all other runtimes were removed, so the check is not needed anymore for Statamic 5.

You can try this workaround: add 'version' => 'runtime', to config/statamic/antlers.php

Nevertheless, the addon should receive an update; I might provide a pull request if i have some spare time.

frknasir commented 1 month ago

That aside, this package assumes that spatie's ignition page is used by default. That's not the case with L11. Laravel 11 comes with a default error page. Nevertheless, it can easily be swapped with spatie's with a simple install which will subsequently solve the issue. Personally, I don't think this package should be depending on ignition contracts.