Created by: n3tr
fix #9882 (closed)
Eject the app will cause React is not defined
, This is due to the Babel's configuration for JSX runtime gets removed during ejecting.
Change
- Keep
runtime
configuration on ejection
Verify Steps
yarn create-react-app test-ejecting-app
cd test-eject-app
yarn eject
-
yarn start
and app should gets compiled successfully