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
I'm working on a typescript react project where I've installed react-focus-trap via yarn yarn add react-focus-trap and I can see into the package.json "react-focus-trap": "^2.7.1",.
Debugging it, I can see that FocusTrap is undefined and react is generating this error:
warning.js?85a7:33 Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of `Modal`.
Any idea on this error?
The text was updated successfully, but these errors were encountered:
Huh. I'll take a look. It's possible that I got something wrong. We're consuming this module on ars-arsenal, another project of ours without an issue. It'd be great to know if our configuration isn't correct.
I'm working on a typescript react project where I've installed react-focus-trap via yarn
yarn add react-focus-trap
and I can see into the package.json"react-focus-trap": "^2.7.1",
.In my code I'm using it:
Debugging it, I can see that
FocusTrap
is undefined and react is generating this error:Any idea on this error?
The text was updated successfully, but these errors were encountered: