You will get one of these:
Uncaught (in promise) TypeError: Cannot read property 'toUpperCase' of undefined(…)
ReactCompositeComponent.js:870 Uncaught TypeError: Cannot read property 'displayName' of undefined
if you try to:
import { ComponentName } from 'ComponentName.jsx'
instead of:
import ComponentName from 'ComponentName.jsx'
This error:
Uncaught TypeError: Cannot read property 'toUpperCase' of undefined
might be caused by importing:
import { Link } from 'redux-router'
instead of
import { Link } from 'react-router'
Performance problems might be caused by 'redux-logger' and 'redux-devtools' packages.
Remove them from production build!
Hey,
could you expplain me why the first one can be
Uncaught (in promise)
?I am trying to wrap my head around it. Why are we in a promise at the point of the error?
I am also getting
Uncaught (in promise)
when there is a syntax error in a react component.