Cannot read properties of null (reading 'tagName')
See original GitHub issue[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)
Issue Analytics
- State:
- Created 10 months ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Cannot read property 'tagName' of null #12830 - vercel/next.js
My issue was/is relevant to how I was handling callbacks. I thought it was because of the script tag too, but it wasn't....
Read more >Uncaught TypeError: Cannot read property 'tagName' of null
I've found that on Android 4.0.X any page without a div containing at least 10 characters will throw a JavaScript error. The RSS...
Read more >Error Cannot read properties of null (reading 'tagName')
Folks, I'm facing a serious problem with the Web Storie plugin, I can't say exactly when it started to happen because I only...
Read more >[Multilingual Component] Cannot read property 'tagName' of null
When I try to load resource from file I get the error. Cannot read property 'tagName' of null. The json file is a...
Read more >Cannot read property 'tagName' of null throws at /jslibrary ...
When a custom event is created in a custom LWC component which is exposed in the Visualforce tab in Lightning Experience through Lightning...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Reproduced bug
@inorganik also please look
https://codesandbox.io/s/nextjs-page-transition-react-spring-forked-3f0n63?file=/pages/index.js