Ruby: 3.1.2, Rails 6.1
Trying to add gem importmap-rails
to an existing Rails 6.1 app.
The gem bundles, but neither the rake importmap:install
task nor the gem helper method <%= javascript_import_tags %>
are available.
In rails console, the class Importmap
is undefined.
It seems the gem does not install properly or completely. No useful error messages raised.
How can I debug a gem that bundles but is not available? The situation doesn't make sense to me.
(Related question from earlier attempt)