You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library uses the global HTMLElement which only exists in DOM land. We mock our environment with JSDom, however this code is loaded at require() time before JSDom is instantiated, so the require fails and crashes execution. What about React.PropTypes.object, or global.HTMLElement (which wouldn't fail the require() and also fix the linting error in the file) or typeof window === "undefined" ? React.PropTypes.object : global.HTMLElement ?
The text was updated successfully, but these errors were encountered:
This library uses the global
HTMLElement
which only exists in DOM land. We mock our environment with JSDom, however this code is loaded atrequire()
time before JSDom is instantiated, so the require fails and crashes execution. What aboutReact.PropTypes.object
, orglobal.HTMLElement
(which wouldn't fail therequire()
and also fix the linting error in the file) ortypeof window === "undefined" ? React.PropTypes.object : global.HTMLElement
?The text was updated successfully, but these errors were encountered: