-
Notifications
You must be signed in to change notification settings - Fork 3
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 [tabler-mail]. #85
Comments
The error occurs because the To fix the error, you should change the line in your Blade file to: <x-tabler-mail class="size-4" /> Adding the Additionally, you can also utilize the Here’s an example of how to use the @svg('tabler-mail', ['class' => 'size-4']) In this example, the SVG icon I also tested this with Laravel version 9 |
My bad, the code above was copied after I payed around for an hour or so trying to make it somehow work (with no luck). I just tried to install the lib again, here are the exact steps I took: initial situation Steps:
|
I did some digging into the code and found the problem and how to fix it: Why is there an issue? Code that causes the issue:
Code that fixes the issue:
Would be nice if you could merge this fix so I can use the new lib in composer. |
Hello simplexx, Thank you for your detailed explanation of the issue and the solution you discovered. I'm glad to inform you that your proposed changes have been implemented. The adjustment from |
Awesome, thanks 👍 |
Not sure if it's me, but my tabler icons throw an error after migrating from the ryangjchandler/blade-tabler-icons lib.
The error is:
InvalidArgumentException
PHP 8.2.13
Laravel 10.48.27
Unable to locate a class or view for component [tabler-mail].
The icon is added like this in the blade file:
<tabler-plus class="size-4" />
For the migration, I just removed the other lib and added this one using composer require.
After removing this lib and installing the other again, everything started working fine again.
The text was updated successfully, but these errors were encountered: