question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 10 months ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mmarkelovcommented, Nov 25, 2022

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

0reactions
AstRonincommented, Nov 24, 2022

Reproduced bug

@inorganik also please look

  • home page
  • click to About or Contact Us

https://codesandbox.io/s/nextjs-page-transition-react-spring-forked-3f0n63?file=/pages/index.js

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found