Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
adrian-ub opened this issue Sep 30, 2020 · 10 comments
Closed
Labels
bug Something isn't working

Comments

@adrian-ub
Copy link

adrian-ub commented Sep 30, 2020

  • 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].
@driesvints
Copy link
Member

Did you run php artisan view:clear?

@driesvints driesvints added the question Further information is requested label Oct 1, 2020
@adrian-ub
Copy link
Author

adrian-ub commented Oct 1, 2020

Yes

Code:

image

InvalidArgumentException:

image

@driesvints
Copy link
Member

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
Copy link
Author

The same happens in a fresh installation

image

@driesvints driesvints added bug Something isn't working and removed question Further information is requested labels Oct 2, 2020
@driesvints
Copy link
Member

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
Copy link

dsturm commented Oct 12, 2020

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
Copy link

rizqyhi commented Oct 18, 2020

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
Copy link

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
Copy link
Contributor

iksaku commented Nov 23, 2020

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

6 participants