stimulusreflex / stimulus_reflex

Build reactive applications with the Rails tooling you already know and love.
https://docs.stimulusreflex.com
MIT License
2.28k stars 172 forks source link

Could not find generator 'stimulus_reflex:initializer' #706

Open dulayaustin opened 5 months ago

dulayaustin commented 5 months ago

Bug Report

Describe the bug

I have a new rails app with esbuild js bundler and install stimulus_reflex via Manual Configuration describe on the docs. However I found out the theres no stimulus_reflex:initializer on rails generator anymore.

To Reproduce

rails g stimulus_reflex:initializer

Expected behavior

It should generate config/initializers/stimulus_reflex.rb. Much better if app/javascript/controllers/application_controller.js will be generated as well upon initialize.

Screenshots or reproduction

> rails g stimulus_reflex:initializer
Could not find generator 'stimulus_reflex:initializer'. (Rails::Command::CorrectableNameError)
Did you mean?  stimulus_reflex
Run `bin/rails generate --help` for more options.

Versions

StimulusReflex

External tools

swombat commented 2 weeks ago

I also have this issue and am concerned to see that this was opened 5 months ago with no response...