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

Script error while importing ESM JS for module '../blueimp-md5/js/md5.js' #361

Open
ChetanGoti opened this issue Feb 26, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ChetanGoti
Copy link

While importing amplitude-js in ES6 module, it throws error for blueimp-md5 module. Is there anything I'm missing?

import amplitude from "amplitude-js/amplitude.esm.js";

Current Behavior

Uncaught SyntaxError: The requested module '../blueimp-md5/js/md5.js' does not provide an export named 'default'

Environment

  • JS SDK Version: 7.4.3
  • Installation Method: yarn
  • Browser and Version or React Native and Device: Chrome Version 88.0.4324.192 (Official Build) (x86_64)
@ChetanGoti ChetanGoti added the bug Something isn't working label Feb 26, 2021
@jooohhn jooohhn self-assigned this Mar 2, 2021
@jooohhn
Copy link
Contributor

jooohhn commented May 6, 2021

hey @ChetanGoti, I was able to use amplitude.esm.js through es modules in a create-react-app project. I think the problem may be in your project-specific code transpilation. How are you doing that?

blueimp/JavaScript-MD5#38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants