Skip to content
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

UI doesn't work unless browser supports importmaps #1529

Open
seanaery opened this issue Apr 25, 2024 · 0 comments
Open

UI doesn't work unless browser supports importmaps #1529

seanaery opened this issue Apr 25, 2024 · 0 comments

Comments

@seanaery
Copy link
Contributor

As of January 2024, an ArcLight application with updated gem dependencies (esp. importmap-rails v2+) will no longer work in browsers that don't natively support Import Maps. This might also be applicable to the Blacklight core engine.

According to https://caniuse.com/import-maps, that'd be about 8.5% of browsers, especially including:

  • <= Safari 16.3 (Jan 2023) -- especially still in use on iOS
  • <= Firefox 107 (Nov 2022)

Screenshot (Demo ArcLight)

This shows the Contents unable to load (and related console error) on Demo ArcLight w/Firefox 107:
Screenshot 2024-04-24 at 9 56 38 AM

Explanation

The importmap-rails gem dropped its inclusion of the es-module-shim in version 2.0 (Jan 2024); the shim enabled importmaps to work on older browsers. Per this README (which also confirms that the console error above is caused by this shim not being present), you can manually add it back in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant