How should I bundle stimulus_reflex with esbuild in Rails 7
When I use webpacker gem, it is so easy to install stimulus reflex using stimulus_reflex gem in Rails 6.
But in Rails 7, some problems occurs as follows:
$ bundle add stimulus_reflex
$ rails stimulus_reflex:install
yarn add v1.22.17
[1/4] π Resolving packages...
[2/4] π Fetching packages...
[3/4] π Linking dependencies...
warning " > stimulus_reflex@3.4.1" has unmet peer dependency "stimulus@>= 1.1".
[4/4] π¨ Building fresh packages...
success Saved lockfile.
success Saved 4 new dependencies.
info Direct dependencies
ββ stimulus_reflex@3.4.1
info All dependencies
ββ @rails/actioncable@7.0.0
ββ cable_ready@4.5.0
ββ morphdom@2.6.1
ββ stimulus_reflex@3.4.1
β¨ Done in 3.13s.
rails aborted!
Dont know how to build task 'webpacker:install:stimulus' (See the list of available tasks with `rails --tasks`)
(See full trace by running task with --trace)
mkdir -p /Users/lucius/Projects/myrails/r7/eLearning/app/javascript/controllers
mkdir -p /Users/lucius/Projects/myrails/r7/eLearning/app/reflexes
Updating /Users/lucius/Projects/myrails/r7/eLearning/app/javascript/controllers/index.js
create app/reflexes/application_reflex.rb
create app/javascript/controllers/application_controller.js
create app/reflexes/example_reflex.rb
create app/javascript/controllers/example_controller.js
Generating default StimulusReflex configuration file into your application config/initializers directory
create config/initializers/stimulus_reflex.rb
StimulusReflex and CableReady have been successfully installed!
Go to https://docs.stimulusreflex.com/quickstart if you need help getting started.
Maybe, I think it is caused by using esbuild not webpack.
What should I do ? Please.
p.s. javascript/channel/consumer.js not created.
Is there any answer about how to use StimulusReflex with esbuild (i.e. Rails 7 i.e. JumsptartPro)?