[BUG] 5.0 Failed to compile with create-react-app
See original GitHub issueFailed to compile.
./node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
Can't import the named export 'Children' from non EcmaScript module (only default export is available)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:66
- Comments:45 (1 by maintainers)
Top Results From Across the Web
My create-react-app is failing to compile due to ESLint error
1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. 2. Delete node_modules in your project folder. 3.
Read more >Fix Error We no longer support global installation of ... - YouTube
Fix ErrorYou are running create - react - app 4.0.3 which is behind the latest release 5.0.0We no longer support global installation of...
Read more >CRA 5.0.0 breaks build : r/reactjs - Reddit
Steps to reproduce · Open package.json and verify that react-scripts is version 5.0.0 · Open the App.test.tsx file and introduce any syntax error....
Read more >Webpack 5 errors | ImmutableX Documentation
The reason for this error is that create-react-app uses a version of webpack greater than 5, which, unlike versions < 5, does not...
Read more >How to fix build failures with `create-react-app` in production
The build script bootstrapped by create-react-app performs some validation of your code. When most of this validation fails, create-react-app ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@justrealmilk I added the following to
craco.config.js
and it appears to work.I’m using NextJS fwiw and fixed the error by following @j-borg’s link and just wanted to make what the solution was explicit because webpack gives me nightmares and I feel like any time I’m fortunate enough to happen across a tip that works, I am eternally grateful.
In my project, I’ve got a
.storybook
directory at the root.Within that directory, I have a file at
.storybook/main.js
. I just added the entry for thewebpackFinal
property of that file, so now it looks like so (the other stuff was already there)