Closed michaelgatuma closed 4 years ago
Hi @MichaelGatuma! Did you create a navigation-dropdown component? I guess you included it somewhere in your views and laravel can't find it.
Hello @jantinnerezo! That is with the default installation of laravel, so the navigation-dropdown exists, as well as all the other components. The same exception is thrown for all the components like the two-factor-authentication-form, logout-other-browser-sessions-form etc. I think it should just work with those without conflicts straight out of the box.
So weird, I haven't encounter that issue when installing it on my laravel 8 with jetstream project.
Did you try clearing the views?
No, not yet. let me try. Though it works when I remove the alert package, stops working when I install.
@jantinnerezo I have cleared everything cached including compiled classes and packages. The error still persists.
@MichaelGatuma I will try reproducing it later tonight with a fresh installation of Laravel + Jetstream.
I got this issue as well on Laravel 8 with jetsream, livewire is unable to find any components where LivewireAlert not imported. only the component where i imported LivewireAlert be able to load. all others components messed. after remove the package all worked as expected. thanks to look into the issue.
Best,
I got this issue as well on Laravel 8 with jetsream, livewire is unable to find any components where LivewireAlert not imported. only the component where i imported LivewireAlert be able to load. all others components messed. after remove the package all worked as expected. thanks to look into the issue.
Best,
@jantinnerezo
Hi @jantinnerezo, the whole project stopped working after installing the package.
Same error :( `> Livewire\Exceptions\ComponentNotFoundException
Unable to find component: [navigation-dropdown] `
Hi guys! sorry for the very late response. I added a new 2.0 release, it should fix the Livewire\Exceptions\ComponentNotFoundException
Thank you guys!
Just removed the LivewireAlert trait guys to your livewire components and just use the $this->alert directly
Return this message: Unable to locate a class or view for component [livewire-alert::script] Laravel 8 without JetStream + Livewire 2
Does this line changed <x-livewire-alert::script />
?
Return this message: Unable to locate a class or view for component [livewire-alert::script] Laravel 8 without JetStream + Livewire 2
Does this line changed
<x-livewire-alert::script />
?
@jantinnerezo The right one is <x-livewire-alert::scripts />
. I make a PR #8 to update it on the README file
Yeah sorry about that typo, its merged now. Thank you so much!
Great! Thanks!
@dukenst2006 the issue has been resolved. It works fine now. Thanks a lot @jantinnerezo for looking into that! I will now close the issue from my side.
Exception
To regenerate:
$ laravel new laravelapp --jet
$ composer require jantinnerezo/livewire-alert
[http://127.0.0.1:8000/dashboard](http://127.0.0.1:8000/dashboard)