I'm trying to use Create React App on Codesandbox.io but I keep receiving
TypeError _interopRequireDefault is not a function
import ReactDOM from "react-dom";
Please let me know how I can fix this, thank you.
After add "@babel/runtime", I fixed it
In my case the solution was to clean jest
cache:
npx jest --clearCache
Add @babel/runtime
to the dependency section. That will fix it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With