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
Using in create-react-app as a fresh install on the latest versions of everything, I'm getting this error. Not sure why it's happening, since the function is actually getting registered. Maybe it's not getting hoisted correctly?
We came across the same issue. It would appear this is due to the fact that, as of ES2015 - a function within a conditional if block, is scoped to that block - and thus not available outside. Given that I'm using this in a require, the solution I've taken here is to use my own copy of the detect-element-resize file - with the if (!attachEvent) { conditional commented out.
Using in create-react-app as a fresh install on the latest versions of everything, I'm getting this error. Not sure why it's happening, since the function is actually getting registered. Maybe it's not getting hoisted correctly?
The call is being made from here:
https://github.com/sdecima/javascript-detect-element-resize/blob/master/detect-element-resize.js#L124
The text was updated successfully, but these errors were encountered: