Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinning anything w/ a stimulus dependency re-pins stimulus to non-gem version #151

Open
armchairdj opened this issue Jan 5, 2025 · 0 comments

Comments

@armchairdj
Copy link

armchairdj commented Jan 5, 2025

I have a Rails 8 app w/ the stimulus-rails and importmap-rails gems installed.

When I install any third-party package that uses stimulus, my config/importmap.rb gets updated to the publilcly available latest version, not the version I previously pinned w/ the gem. Example:

$ bin/importmap pin stimulus-autocomplete

Gives me this diff:

-pin "@hotwired/stimulus", to: "stimulus.min.js"
+pin "@hotwired/stimulus", to: "@hotwired--stimulus.js" # @3.2.2

Would this be better filed as an importmap-rails bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant