blade-ui-kit / blade-heroicons

A package to easily make use of Heroicons in your Laravel Blade views.
https://blade-ui-kit.com/blade-icons
MIT License
551 stars 50 forks source link

Unable to locate a class or view for component [heroicon-o-table] #9

Closed adrian-ub closed 3 years ago

adrian-ub commented 3 years ago

Description:

Steps To Reproduce:

 InvalidArgumentException

  Unable to locate a class or view for component [heroicon-o-table].
driesvints commented 3 years ago

Did you run php artisan view:clear?

adrian-ub commented 3 years ago

Yes

Code:

image

InvalidArgumentException:

image

driesvints commented 3 years ago

I'm running the package atm in several production apps with these specs so not really sure what's going on here. Can you reproduce this on a fresh install?

adrian-ub commented 3 years ago

The same happens in a fresh installation

image

driesvints commented 3 years ago

Thanks, I've managed to reproduce this. This seems to be a Laravel 8 specific problem. I'm a bit at a loss atm wat what's causing this but would greatly appreciate any help.

dsturm commented 3 years ago

I ran into the same problem, BUT just to be sure: Did you install the blade-ui-kit/blade-heroicons or blade-ui-kit/blade-icons package? I first did the latter, which obviously was the problem 🙄.

Now after checking twice, with the blade-ui-kit/blade-heroicons package it runs well in a fresh Laravel 8 app. 🤦

rizqyhi commented 3 years ago

I got the same problem after upgrading to Laravel 8. But in my case, the error happened on different icon:

InvalidArgumentException
Unable to locate a class or view for component [heroicon-o-camera].
karlgray commented 3 years ago

I ran into the same problem, BUT just to be sure: Did you install the blade-ui-kit/blade-heroicons or blade-ui-kit/blade-icons package? I first did the latter, which obviously was the problem roll_eyes.

Now after checking twice, with the blade-ui-kit/blade-heroicons package it runs well in a fresh Laravel 8 app. facepalm

This fixed it for me. I removed both blade-heroicons and blade-icons. Then just installed blade-heroicons. Now working in Laravel 8. Thanks.

iksaku commented 3 years ago

Tested this and its working for me, I think its safe to close the issue while upgrading to the latest Laravel 8.x version :)

driesvints commented 3 years ago

I also can't recreate it anymore on a fresh install so I'm closing this. Thanks all.