Replies: 1 comment 1 reply
-
Hello, is this a generic compatibility issue between importmap and vite? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🐞 ActiveAdmin 4.0.0.beta15 not working on Firefox 138.0.1 due to import map issues
✅ Expected behavior
Basic UI interactions in ActiveAdmin should work in all modern browsers, including Firefox. Specifically:
has_many
nested forms should dynamically add a new input block.These interactions should work without JavaScript errors in the browser console.
❌ Actual behavior
On Firefox 138.0.1, the following interactions do not work:
has_many
fields does nothing.The browser console reports:
Import maps are not allowed after a module load or preload has started. Uncaught TypeError: The specifier “active_admin” was a bare specifier, but was not remapped to anything. Relative module specifiers must start with “./“, “../” or “/”.
This makes ActiveAdmin unusable in Firefox out of the box when both Vite and Importmap are present.
🧪 How to reproduce
activeadmin (4.0.0.beta15)
in a Rails app withimportmap-rails
andvite_rails
.app/views/active_admin/_html_head.html.erb
, include the following:💻 System configuration
• activeadmin (4.0.0.beta15)
• Firefox version: 138.0.1
• Using both importmap-rails and vite_rails
• Rails 8.0.2
Beta Was this translation helpful? Give feedback.
All reactions