-
Notifications
You must be signed in to change notification settings - Fork 649
Closed
Labels
Description
What is the current behavior?
Running this module on node.js (for example during ssr) results in: ReferenceError: Element is not defined
What is the expected behavior?
Importing react-transition-group
does not result in an error
The problem is this line:
react-transition-group/src/Transition.js
Line 397 in c863158
nodeRef: PropTypes.shape({ current: PropTypes.instanceOf(Element) }), |
A possible solution is: Element = typeof Element === 'undefined' ? function(){} : Element
ArtemKislov, matthoffner, KazukiSadasue, alexrhogue, theodorebear and 34 morealexkb0009, wuyongzhi, Michielnuyts, omerkhawaja and SaravananTamizhan