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:
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......
Jump to solution
8 Replies
Solution
bwurtz999
bwurtz9994mo ago
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...
bwurtz999
bwurtz999OP4mo ago
Anyone have any idea why this happened?
awcodes
awcodes4mo ago
Try this php artisan filament:clear-cached-components
bwurtz999
bwurtz999OP4mo ago
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
awcodes
awcodes4mo ago
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.
bwurtz999
bwurtz999OP4mo ago
No it was my local machine
awcodes
awcodes4mo ago
Definitely odd. Are you using docker?
bwurtz999
bwurtz999OP4mo ago
No I use Laravel Herd

Did you find this page helpful?