blade-ui-kit/blade-heroicons

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

adrian-ub opened this issue · 10 comments

  • Library Version: 0.2.2
  • Laravel Version: v8.7.1
  • PHP Version: 7.4.10

Description:

Steps To Reproduce:

  • Install the package in a Laravel project.
  • Add <x-heroicon-o-table/> on view.
  • Run php artisan optimize
 InvalidArgumentException

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

Did you run php artisan view:clear?

Yes

Code:

image

InvalidArgumentException:

image

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?

The same happens in a fresh installation

image

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.

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. 🤦

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].

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.

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

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