Trying to create a Livewire component in Radicle with acorn v5 and getting this error:
$ lando wp acorn make:livewire MyComponent
ERROR Command “make:livewire” is not defined. Did you mean one of these?
⇂ make:block⇂ make:command⇂ make:component⇂ make:composer⇂ make:controller⇂ make:job⇂ make:middleware⇂ make:migration⇂ make:provider⇂ make:queue-batches-table⇂ make:queue-failed-table⇂ make:queue-table⇂ make:seeder
I also tried creating the view and component files manually but the component is not rendered. Not sure if it’s because I missed something or because the acorn CLI command does other stuff.
A quick update, the issue was on my side and probably related to my Lando setup. After starting over and using Lando’s composer, acorn livewire console command was working.
However, wp acorn make:livewire creates a single file under resource/views/components and it’s prefixed with .
INFO Livewire component [resources/views/components/⚡post-list.blade.php] created successfully
EDIT: Going through Livewire v4 docs, the thunder is expected as filename prefix. From Livewire Components
Why the ⚡ emoji?
You might be wondering about the lightning bolt in the filename. This small touch serves a practical purpose: it makes Livewire components instantly recognizable in your editor's file tree and search results.