You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From version 0.4.0, stimulus:install tries to append import "./controllers" in app/javascript/application.js instead of app/javascript/packs/application.js when using the default install of Rails (with webpacker). This also affects hotwire-rails since it's using the latest version of Stimulus.
Rails version: 6.1.4.1
$ rails new myapp
$ cd myapp
$ bundle add stimulus-rails
$ rails stimulus:install
Create controllers directory
create app/javascript/controllers
create app/javascript/controllers/index.js
create app/javascript/controllers/hello_controller.js
Import Stimulus controllers
rails aborted!
Thor::Error: The file /..../myapp/app/javascript/application.js does not appear to exist
The text was updated successfully, but these errors were encountered:
kjellberg
changed the title
0.4.0 breaks installs for Rails without importmap
0.4.0 breaks install (app/javascript/application.js does not appear to exist) for Rails without importmap
Sep 4, 2021
kjellberg
changed the title
0.4.0 breaks install (app/javascript/application.js does not appear to exist) for Rails without importmap
0.4.0 (app/javascript/application.js does not appear to exist) for Rails without importmap
Sep 4, 2021
From version 0.4.0,
stimulus:install
tries to appendimport "./controllers"
inapp/javascript/application.js
instead ofapp/javascript/packs/application.js
when using the default install of Rails (with webpacker). This also affectshotwire-rails
since it's using the latest version of Stimulus.Rails version: 6.1.4.1
$ rails new myapp $ cd myapp $ bundle add stimulus-rails $ rails stimulus:install Create controllers directory create app/javascript/controllers create app/javascript/controllers/index.js create app/javascript/controllers/hello_controller.js Import Stimulus controllers rails aborted! Thor::Error: The file /..../myapp/app/javascript/application.js does not appear to exist
The text was updated successfully, but these errors were encountered: