owenvoke / blade-fontawesome

A package to easily make use of Font Awesome in your Laravel Blade views.
https://packagist.org/packages/owenvoke/blade-fontawesome
MIT License
167 stars 28 forks source link

Components not seen after installation #65

Open juleindev opened 1 year ago

juleindev commented 1 year ago

Description

Bug with the package, components are not seen in Laravel 10, blade-ui-kit/blade-icons 1.5 correctly installed. The bug doesn’t appear with another package designed for Blade Icons. No error at installation.

Tried with the documentation example without success.

Your environment

PHP 8.2 Windows 11 with Laragon Phpstorm

owenvoke commented 1 year ago

Which icons are you trying to use? I've justed tested on a clean Laravel 10 install, with <x-fas-cloud/>, and it worked as expected. 🤷🏻

Although, I tested on macOS and Linux, not sure if there'd be some issue with Windows. 🤔

juleindev commented 1 year ago

I've try the same Phpstorm doesn't detect it. I have a project with Filament Installed. I've tried with a fresh Laravel 10 project and it's not work either. Maybe there is something with version used.

twobyte commented 8 months ago

Possibly related, using latest Roots Sage and Bedrock, after deploying to web server getting this critical error:

PHP Fatal error: Uncaught InvalidArgumentException: Unable to locate a class or view for component [fas-phone]. in /home/www/web/app/themes/xxxx/vendor/illuminate/view/Compilers/ComponentTagCompiler.php:311

However it is all working locally on Mac OS, the [fas-phone] icon appears fine with tag <x-fas-phone style="width:2rem;height:2rem;color:var(--bs-gray-dark)" />

Debugging was costing a fair bit of time, and with limited Laravel knowledge I’m struggling to understand how it works, so I’ve just replaced the <x-fas-phone /> component tag with raw <svg /> tag for now.