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

ES6 module in browser: The requested module does not provide an export named 'default' #212

Open
174n opened this issue Apr 13, 2019 · 4 comments

Comments

@174n
Copy link

174n commented Apr 13, 2019

Here is the code:

<script type="module">
  import CryptoJS from "https://unpkg.com/[email protected]/index.js";
</script>

I got that error

Uncaught SyntaxError: The requested module 'https://unpkg.com/[email protected]/index.js' does not provide an export named 'default'
@174n
Copy link
Author

174n commented Apr 20, 2019

it would be great to have es6 modules support

@abhijithvijayan
Copy link

+1

@entronad
Copy link
Contributor

entronad commented Dec 7, 2019

@Rundik
@abhijithvijayan
Try this:
https://www.npmjs.com/package/crypto-es

@jahed
Copy link

jahed commented Dec 16, 2021

For reference #60 is the same issue.

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

4 participants