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

mjs breaks react-native app #45

Closed
garridio85 opened this issue Aug 10, 2020 · 2 comments
Closed

mjs breaks react-native app #45

garridio85 opened this issue Aug 10, 2020 · 2 comments

Comments

@garridio85
Copy link

I am seeing an issue where the following library is causing a compile error:

Can't import the named export 'fromBase64Url' from non EcmaScript module (only default export is available)

If i remove the .mjs file it works perfectly but this shouldn't be the case.

Can anyone help?

@garridio85 garridio85 changed the title mjs break react-native app mjs breaks react-native app Aug 10, 2020
@shuowu
Copy link
Contributor

shuowu commented Aug 10, 2020

@garridio85 Looks like .mjs is still not supported in metro (facebook/metro#535). Can you try to change the file type to .js instead?

@JayNewstrom
Copy link
Contributor

Looks like Shuo was able to answer your question. If you have any others feel free to comment, reopen, or create a new issue. Thanks!

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

3 participants