Closed stephencapellic closed 9 months ago
@stephencapellic Assuming you enabled the module and still not being able to use the generator I assume your drush
version being fairly old is the issue as it doesn't recognize the generator registration.
Try to install Drush 11 in your local project composer.
Hello @hugronaphor, thank you for addressing my issue so quickly. I'm running Drush 12, so the version is not the problem.
$ ddev drush
Drush Commandline Tool 12.4.3.0
@stephencapellic OK, got it.
Drush 12 expects a new way to register generators( DCG3 ) [ drush-ops/drush/issues/5600 ].
For now it works only with Drush 11.
Have to think weather Drush 12 will now be a minimum requirement or support both.
Ahhh... thanks!
Changed this:
"drush/drush": "^11 || ^12",
to:
"drush/drush": "^11",
by doing this:
ddev composer require drush/drush ^11 -W
Then:
$ ddev drush generate wire
[warning] Undefined array key "no-ansi" GenerateCommands.php:76
Welcome to wire generator!
––––––––––––––––––––––––––––
Module machine name [web]:
➤
I'm not sure what the "Undefined array key "no-ansi" GenerateCommands.php:76" warning is all about, but it doesn't look important. FYI, I'm using VSCode in Gitpod, so maybe I'm missing a plugin in my Terminal settings.
I'm in business! Thank you for the support!
@stephencapellic Since Drush 12 with DCG v3 now is recommended for Drupal ^10 and Wire works starting with Drupal 10 I dropped support for Drush 11 in favor of Drush 12.
Thanks for pointing out to this issue.
Available in new release 1.0.6
$ ddev drush generate wire
Welcome to wire generator!
––––––––––––––––––––––––––––
Module machine name:
➤
Noting that the "Undefined array key "no-ansi" GenerateCommands.php:76" warning now longer appears.
Looks like we're good! Thanks!
Hello,
I'm following this guide [https://wire-drupal.com/docs/making-components] after installing Wire to make my first wire component. I did:
ddev drush generate wire
I got this error:
I then did:
ddev drush generate
And got this: