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

create-react-app doesn't support mjs #1617

Closed
Kamahl19 opened this issue Nov 5, 2021 · 0 comments · Fixed by #1618
Closed

create-react-app doesn't support mjs #1617

Kamahl19 opened this issue Nov 5, 2021 · 0 comments · Fixed by #1618

Comments

@Kamahl19
Copy link

Kamahl19 commented Nov 5, 2021

Updating to 1.1.0.beta-8 doesn't work on CRA based apps because of Can't import the named export 'createContext' from non EcmaScript module (only default export is available)

This is not really a problem of SWR but if we want to use this package on CRA based apps, the mjs has to be reverted.

Additional context facebook/create-react-app#10356

Other libs have the same issue formatjs/formatjs#1395

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.

1 participant