reactjs

How to fix TypeError _interopRequireDefault is not a function in Create React App


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.


Solution

  • After add "@babel/runtime", I fixed it