Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utils: requestAnimationFrame throws with "Uncaught TypeError: Illegal invocation" #17

Closed
garthenweb opened this issue Jan 19, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@garthenweb
Copy link
Owner

I just compiled some code with parcel v2 and got this error. Most probably, this depends on how the files will get bundled (it throws when the helper is used in the react-sticky PlaceholderElement), but should be handled in the library anyhow.

Most probably a window.requestAnimationFrame.bind(window) does the trick.
See https://stackoverflow.com/questions/9677985/uncaught-typeerror-illegal-invocation-in-chrome

@garthenweb garthenweb added the bug Something isn't working label Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant