react-countup: Cannot read properties of null (reading 'tagName')
[x] Bug [ ] Feature request
"next": "13"
"countup": "2.3.2",
"react-countup": "^6.3.2",
"react": "18.2.0",
Description
Reproduce:
Open page with Count but do not start it. Then move to other page (by Next routing).
@inorganik in https://github.com/inorganik/countUp.js/issues/293 said me it is not bug of countup.
Unhandled Runtime Error
TypeError: Cannot read properties of null (reading 'tagName')
Call Stack
t.printValue
node_modules/countup.js/dist/countUp.min.js (1:4846)
t.reset
node_modules/countup.js/dist/countUp.min.js (1:4275)
eval
node_modules/react-countup/build/index.js (251:0)
eval
node_modules/react-countup/build/index.js (134:0)
eval
node_modules/react-countup/build/index.js (289:0)
safelyCallDestroy
node_modules/react-dom/cjs/react-dom.development.js (22932:0)
commitHookEffectListUnmount
node_modules/react-dom/cjs/react-dom.development.js (23100:0)
commitPassiveUnmountInsideDeletedTreeOnFiber
node_modules/react-dom/cjs/react-dom.development.js (25098:0)
commitPassiveUnmountEffectsInsideOfDeletedTree_begin
node_modules/react-dom/cjs/react-dom.development.js (25048:0)
commitPassiveUnmountEffects_begin
node_modules/react-dom/cjs/react-dom.development.js (24956:0)
commitPassiveUnmountEffects
node_modules/react-dom/cjs/react-dom.development.js (24941:0)
flushPassiveEffectsImpl
node_modules/react-dom/cjs/react-dom.development.js (27038:0)
flushPassiveEffects
node_modules/react-dom/cjs/react-dom.development.js (26984:0)
performSyncWorkOnRoot
node_modules/react-dom/cjs/react-dom.development.js (26076:0)
flushSyncCallbacks
node_modules/react-dom/cjs/react-dom.development.js (12042:0)
commitRootImpl
node_modules/react-dom/cjs/react-dom.development.js (26959:0)
commitRoot
node_modules/react-dom/cjs/react-dom.development.js (26682:0)
finishConcurrentRender
node_modules/react-dom/cjs/react-dom.development.js (25981:0)
performConcurrentWorkOnRoot
node_modules/react-dom/cjs/react-dom.development.js (25809:0)
workLoop
node_modules/react-dom/node_modules/scheduler/cjs/scheduler.development.js (266:0)
flushWork
node_modules/react-dom/node_modules/scheduler/cjs/scheduler.development.js (239:0)
MessagePort.performWorkUntilDeadline
node_modules/react-dom/node_modules/scheduler/cjs/scheduler.development.js (533:0)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (1 by maintainers)
I just published 6.4.0 - this is just quick fix. I need more time to investigate it and provide better solution. Hope it will help
I just published the react-counup@6.4.1 with actual CountUp version, so I guess it should help with this bug. @inorganik thanks a lot for your help with this. @scottcanoni could you please this new version and let me know if it works. I’ll keep this issue opened for a while