Unable to locate a class or view for component [autocomplete] #2
-
|
I am trying to use this just like the example in the Readme. But it seems Laravel can't find it. Am I missing anything? Unable to locate a class or view for component [autocomplete] |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
@eswachsman no, you're not missing anything, it looks like I'm missing some info in the readme! By default Laravel puts all package blade components under a package namespace, so for this package you need to use I don't have that information in the readme yet 🤦♂️. But if you want to use just I'd suggest having a look at the demo application as it has examples of what is needed to get it running https://github.com/joshhanley/livewire-autocomplete-demo Please note though that this package is still not tagged v1.0 yet as I'm still sorting out a few issues with it 🙂 Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
|
@eswachsman I've updated the readme with some more details. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
|
Thank you Josh, I have much of it working now. |
Beta Was this translation helpful? Give feedback.
@eswachsman no, you're not missing anything, it looks like I'm missing some info in the readme!
By default Laravel puts all package blade components under a package namespace, so for this package you need to use
<x-lwa::autocomplete ...>I don't have that information in the readme yet 🤦♂️.
But if you want to use just
<x-autocomplete ...>you can publish the config and set'use_global_namespace' => true,, which will remove the need forlwa::in the component name.I'd suggest having a look at the demo application as it has examples of what is needed to get it running https://github.com/joshhanley/livewire-autocomplete-demo
Please note though that this package is still not tagged v1.0 yet …