0

I'm trying to upgrade an existing Rails 6.1 with sprockets app to use stimulus. I installed

gem 'importmap-rails'
gem 'hotwire-rails'

The javascript_importmap_tags causes this error in Firefox Developer Tools:

Uncaught TypeError: Error resolving module specifier “application”. Relative module specifiers must start with “./”, “../” or “/”.

Should this work alongside sprockets? I have importmap-rails (0.7.6), stimulus-rails (0.4.2)

rigyt
  • 2,219
  • 3
  • 28
  • 40

1 Answers1

-1

Error can be safely ignored I believe.

Update: I can confirm that this error can safely be ignored, it doesn't cause any issues. Obviously this is not the ideal "solution", hence the downvote I guess, so if anyone knows a better answer and posts it that will be great and I will mark it as the accepted answer.

rigyt
  • 2,219
  • 3
  • 28
  • 40