SystemJS Bare Specifier Error Handling
See original GitHub issueHi,
I have an app which gets quite a lot of traffic, sometimes I see issues with the import map being downloaded which results in a unable to resolve bare specifier error.
Is there a way to retry if the import map fails to download? I tried adding the onerror event handler but this doesnt seem to work as the script type is not JavaScript:
<script src="import-map.json" onerror="myFunction()" type="systemjs-importmap"></script>
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
systemjs/errors.md at main - GitHub
SystemJS Error #8 occurs when you attempt to load a module that doesn't have a URL associated with it. Bare specifiers must be...
Read more >Babel 7 & SystemJS 2: "Unable to resolve bare specifier core ...
I use Babel 7 with the polyfill and the systemjs plugins, which causes the following error: Unhandled promise ...
Read more >Troubleshooting Order Hub customizations - IBM
Unable to resolve bare specifier. The following error is displayed when trying to access a customized route after deployment, but it works locally:...
Read more >systemjs/systemjs - Gitter
Hi everyone! I'm getting Error: Unable to resolve bare specifier in my unit tests which makes sense because no import map exists here...
Read more >The Recommended Setup - single-spa
Specifiers that are not a URL are called "bare specifiers," such as import 'react' . ... An example of using SystemJS to load...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the quick reply @guybedford - I’ll work on this and create a PR when it’s ready.
Fixed in https://github.com/systemjs/systemjs/pull/2324.