Heroicon Cache Issue
Hello - I went to add an icon to an action and added
->icon('heroicons-o-download')
. But I made two errors:
1. It should be heroicon
not heroicons
2. download
doesn't actually exist (I was guessing)
And now, my app is broken. I get the error message Svg by name "o-download" from set "heroicons" not found.
I've tried every clear cache command I can think of but nothing has helped. I can't get a single page to load, even the main Dashboard. Can someone please help me figure out what is going on!? Thank you!Solution:Jump to solution
OK this is really strange. Following the stack trace I went and commented out lines 166-171 of vendor/filament/support/resources/views/components/link.blade.php
And now it's working again. Even after I un-comment those lines......
8 Replies
Solution
OK this is really strange. Following the stack trace I went and commented out lines 166-171 of vendor/filament/support/resources/views/components/link.blade.php
And now it's working again. Even after I un-comment those lines...
Anyone have any idea why this happened?
Try this
php artisan filament:clear-cached-components
I had tried that. It didn't help
I can't really explain what happened
And I don't know why commenting out those lines fixed the problem. But it did
Maybe just delete the entire cache directory in storage?
Only other thing I can think of is the request got cached by the browser. Unless this is on a production server then it could be opcache.
No it was my local machine
Definitely odd.
Are you using docker?
No I use Laravel Herd