We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using this library in my NextJS project
Then I got this error:
Unhandled Runtime Error TypeError: Cannot read properties of null (reading 'clientHeight')
Call Stack eval node_modules/react-animation-on-scroll/dist/esm/components/AnimationOnScroll.js (94:0) eval node_modules/react-animation-on-scroll/dist/esm/components/AnimationOnScroll.js (155:0) eval node_modules/react-animation-on-scroll/dist/esm/components/AnimationOnScroll.js (177:0) invokeFunc node_modules/lodash.throttle/index.js (160:0) leading-edge node_modules/lodash.throttle/index.js (170:0) debounced node_modules/lodash.throttle/index.js (235:0)
Any idea?
The text was updated successfully, but these errors were encountered:
I have the same error in Next 14.
@MetinArslanturk any hint on what this might be?
Sorry, something went wrong.
It seems that in react-animation-on-scroll/dist/esm/components/AnimationOnScroll.js there's no null check on line 94
react-animation-on-scroll/dist/esm/components/AnimationOnScroll.js
const elementBottom = elementTop + node.current.clientHeight; // 'node.current' is possibly 'null'
Any workaround on this?
fix issue MetinArslanturk#19
53f5bbf
Yes, I fixed it in my fork: https://github.com/mixartemev/react-animation-on-scroll
No branches or pull requests
I'm using this library in my NextJS project
Then I got this error:
Unhandled Runtime Error
TypeError: Cannot read properties of null (reading 'clientHeight')
Call Stack
eval
node_modules/react-animation-on-scroll/dist/esm/components/AnimationOnScroll.js (94:0)
eval
node_modules/react-animation-on-scroll/dist/esm/components/AnimationOnScroll.js (155:0)
eval
node_modules/react-animation-on-scroll/dist/esm/components/AnimationOnScroll.js (177:0)
invokeFunc
node_modules/lodash.throttle/index.js (160:0)
leading-edge
node_modules/lodash.throttle/index.js (170:0)
debounced
node_modules/lodash.throttle/index.js (235:0)
Any idea?
The text was updated successfully, but these errors were encountered: