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

Unhandled Runtime Error TypeError: Cannot read properties of null (reading 'clientHeight') #86

Open
firstpersoncode opened this issue Nov 23, 2023 · 0 comments

Comments

@firstpersoncode
Copy link

firstpersoncode commented Nov 23, 2023

I'm using this library in my NextJS project, and all the animated elements inside a scrolled div.
So I set scrollableParentSelector to the respective scrolled div.

Then I got this error:

Unhandled Runtime Error
TypeError: Cannot read properties of null (reading 'clientHeight')

Call Stack
ScrollAnimation.getVisibility
node_modules/react-animate-on-scroll/dist/scrollAnimation.min.js (127:0)
ScrollAnimation.handleScroll
node_modules/react-animate-on-scroll/dist/scrollAnimation.min.js (230:0)
invokeFunc
node_modules/lodash.throttle/index.js (160:0)
leadingEdge
node_modules/lodash.throttle/index.js (170:0)
HTMLDivElement.debounced
node_modules/lodash.throttle/index.js (235:0)

Any idea what's going on exactly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant