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

Uncaught SyntaxError: Unexpected token 'export' (at es-module-shims.js:2:1) #353

Closed
schlichtanders opened this issue Mar 25, 2024 · 1 comment · Fixed by #354
Closed

Comments

@schlichtanders
Copy link

schlichtanders commented Mar 25, 2024

The automatically inserted import of es-module-shims (inserted when using jspm link)

<script async src="https://esm.sh/*es-module-shims@1.8.3/dist/es-module-shims.js" crossorigin="anonymous"></script>

leads to an error in brave (chrome-based)

Uncaught SyntaxError: Unexpected token 'export' (at es-module-shims.js:2:1)

(EDIT: when adding the type="module" manually, I get another error An import map is added after module script load was triggered.)

@guybedford guybedford transferred this issue from jspm/jspm-cli Mar 25, 2024
@guybedford
Copy link
Member

I've transferred this issue to the generator.jspm.io issue queue, the problem is that that esm.sh requires a separate URL system for referencing es-module-shims here.

In the mean time, you can manually update the URL to https://esm.sh/v135/es-module-shims@1.8.3/es2022/dist/es-module-shims.js.

@guybedford guybedford transferred this issue from jspm/generator.jspm.io May 19, 2024
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

Successfully merging a pull request may close this issue.

2 participants