Closed agrieser closed 2 years ago
I suspect this is related to the issue mentioned in https://github.com/rails/importmap-rails/pull/139#pullrequestreview-1039675905
I've opened https://github.com/rails/importmap-rails/pull/143 to address the issue spotted in https://github.com/rails/importmap-rails/pull/139#pullrequestreview-1039675905. @agrieser can you test out that PR and see if it fixes your issue?
I've opened #143 to address the issue spotted in #139 (review). @agrieser can you test out that PR and see if it fixes your issue?
Confirmed this fixes it. Thanks 👍
Rails 7 + Turbo + Stimulus
Using importmap-rails 1.1.3, everything works as expected Updating to importmap-rails 1.1.4, no stimulus code is executed Reverting to importmap-rails 1.1.3, everything works as expected
There's really nothing special about this app. Rails 7, using out of the box configuration for Turbo and Stimulus.
In
app/javascript/controllers/application.js
I added a log line to see if the browser was executing the file at all:Using importmap-rails 1.1.3, I see the log line displayed in chrome's console Using importmap-rails 1.1.4, the log line is not displayed in chrome's console Reverting to importmap-rails 1.1.3, the log line is again displayed in chrome's console.
There are no additional errors displayed in either the build process (using rails
bin/dev
) or in chrome.