-
Notifications
You must be signed in to change notification settings - Fork 181
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
Import error with CRA v2 (webpack 4) #14
Comments
Hi @monkeydri, |
Well as I understood it now webpack 4 treats modules with This is the error on standard CRA (v2) : https://codesandbox.io/s/723r5p804q Will try to submit a PR this week end |
@monkeydri, any update on the PR? |
I will also take a look at this later today too...
…On Tue., 7 May 2019, 3:41 am jevin, ***@***.***> wrote:
@monkeydri <https://github.com/monkeydri>, any update on the PR?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACZ4TPVWLAO2VUM73IXHOF3PUBYEZANCNFSM4HIK7ZYQ>
.
|
Thanks guys! |
Fixed the issue, please upgrade to version IssueThe Commit: #0bccf9b Thanks everyone for reporting the issue! 👍 |
description
Using create-react-app v2, an error is thrown on start : "Can't import the named export 'AUTH_CHECK' from non EcmaScript module"
workaround
add
type: 'javascript/auto',
in module section ofwebpack.config.js
.explanation
modules with
mjs
extension are now treated differently by webpack 4 :source : apollographql/react-apollo#1737
Similar issue with react-appolo :
version
react-admin-firebase v0.5.1
The text was updated successfully, but these errors were encountered: