Uncaught Error: CSSTransition.getChildContext()
I am using React # next and I am getting an error:
Uncaught Error: CSSTransition.getChildContext(): childContextTypes must be defined in order to use getChildContext().
I temporary fixed this with:
CSSTransition.childContextTypes = {
//child context keys
}
I am not too sure why this error occurs but it seems something has changed in react.
I'm also getting this error. Do you have an example of how to define the child context keys?
I am getting this as well. A working example would be great.
Same here
thx ConneXNL, your temp fix work like charm.
Same trouble ((
Anyone on this? React 16+ CSSTransitionGroup same error.... one little example please if its not too much trouble. "I mean ccccmon"
@makis-spy just add what @ConneXNL wrote above, it does work
CSSTransition.childContextTypes = {
// this can be empty
}
@antoniobrandao thanks mate I guess i'm being a noob nit knowing how to specify the child context keys { //child context keys }
basically what @RyanWarner was asking would be great.
PS google not much help on this. Cheers!
@makis-spy literally just put a // commented line in there, it's just that "CSSTransition.childContextTypes" has to be declared, even if it is empty.
CSSTransition.childContextTypes = {
// this can be empty
}
@antoniobrandao O M G mate you rule thank you!
Hello all. So, before the fix mentioned above worked quite nicely but in my recent project using create-react-app and react 16.5.2
the following no longer works.
CSSTransition.childContextTypes = { // this can be empty }
No matter where I add it I still get a lot of warnings
Warning: CSSTransition.getChildContext(): childContextTypes must be defined in order to use getChildContext()
Any ideas or has anyone encountered and solved this issue?