SB
sbusch/create-react-app-8738-repro
Repro for facebook/create-react-app#8738 Minified React error #130 - 'this' in JSX arrow function (06/2020)
create-react-app-8738-repro
This is a repro for facebook/create-react-app issue #8736 Minified React error #130 - 'this' in JSX arrow function (06/2020)
create-react-app had been ejected and reduced to the absolute minimum.
Steps to reproduce
- checkout the repo. within the repo:
yarn installyarn run buildnpx serve -s build
Open http://localhost:5000 in your browser.
Expected outcome
- devtools console:
Success (PojoTest) - rendered component:
SUCCESS (ComponentWithoutJsx)and - rendered component
SUCCESS (ComponentWithJsx)
Actual results
- devtools console:
Success (PojoTest)(ok) - rendered component:
SUCCESS (ComponentWithoutJsx)(ok) but - no rendered component
SUCCESS (ComponentWithJsx), instead: - error in devtools console like:
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
in Unknown (created by ComponentWithJsx)
in ComponentWithJsx