question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SystemJS Bare Specifier Error Handling

See original GitHub issue

Hi,

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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stuartcargillcommented, Mar 23, 2021

Thanks for the quick reply @guybedford - I’ll work on this and create a PR when it’s ready.

0reactions
guybedfordcommented, Apr 28, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found