-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Can't import the named export 'Children' from non EcmaScript module #1686
Comments
In Create React App 5 it is no longer an Issue. If you have a project created with a previous version just try to update react-scripts, it solved the problem for me.
|
I was able to fix this by adding exports.onCreateWebpackConfig = ({ actions }) => {
actions.setWebpackConfig({
module: {
rules: [
{
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto',
},
],
},
})
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an issue with framer-motion running on certain setups including Create React App, NextJS, and Storybook.
The issue is more explained here: framer/motion#1307, but I'd like to leave a report here because I think something needs to be adressed in this repo.
The text was updated successfully, but these errors were encountered: