Skip to content

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

Open
@armchairdj

Description

@armchairdj

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions