-
Notifications
You must be signed in to change notification settings - Fork 110
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
Getting Uncaught TypeError: The specifier "@hotwired/turbo-rails" was a bare specifier
after upgrading to the latest version of Firefox (115.0)
#191
Comments
I have the same issue. still looking for how to fix it |
Firefox having been resolving some bugs in their native import maps implementation. Perhaps some native behaviours changed with regards to load ordering in this release. So long as the import map is loaded before the I'd suspect it's an importmap-rails debugging issue, based on careful analysis of the load ordering to ensure the import map fully loads before any module scripts. |
Thank you @guybedford. We managed to resolve the issue by first rendering So, instead of doing: <%= javascript_include_tag "application", :"data-turbo-track" => "reload" %>
<%= javascript_importmap_tags %> we are now doing: <%= javascript_importmap_tags %>
<%= javascript_include_tag "application", :"data-turbo-track" => "reload" %> I'm actually surprised we had it like that and that it worked. |
I have only javascript_importmap_tags in my includes but it still doesn't work :( |
For others experiencing this issue, it seems like a Firefox bug has been opened here: https://bugzilla.mozilla.org/show_bug.cgi?id=1842792 This comment from Dennis Schubert seems particularly relevant:
In my case, I had a plain |
Seems to be a race condition of importmaps and modulepreload. |
this worked for me. I moved the custom scripts and imports below |
I had the same error message, but I didn't have any custom scripts or alike above However, in my case the gem "turbo-rails" to the |
Hello,
After upgrading to Firefox 115.0 (64-bit), on macOS 13.4, we are seeing the following error in the console and
Turbo
no longer working:Honestly, I'm not sure if this is a rails/importmap-rails or a hotwired/turbo-rails issue.
The text was updated successfully, but these errors were encountered: