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.

Uncaught TypeError: Cannot read property 'value' of null

See original GitHub issue

Ran into an interesting case with the latest rrweb:

Uncaught TypeError: Cannot read property 'value' of null
    at MutationBuffer.emit (rrweb.js:1932)
    at MutationBuffer.processMutations (rrweb.js:1826)
    at MutationObserver.nrWrapper (design-projects:26)

How to reproduce:

  1. Go to https://www.betabrand.com/design-projects, open chrome console
  2. Paste into console" var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.js'; document.head.appendChild(script);
  3. Paste into console: rrweb.record({ emit: () => {} })
  4. Open navigation, go to Yoga Denim.
  5. See uncaught errors in console

The site is using angular-js under the hood.

I added some debugging code to the library, and I think the suspicious element (that is later being read as null) is shown in the screenshot (1224), it matches with the index of addList element being null.

2021-01-12_10-23

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Yuyz0112commented, Jan 12, 2021

I’ll check this tonight.

0reactions
Yuyz0112commented, Jan 16, 2021

@macobo I think I’ve found the root cause. You can have a try on v0.9.14.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property of null - iDiallo
This error occurs when you read a property or call a method on a null object . That's because the DOM API returns...
Read more >
Uncaught TypeError: Cannot read property 'value' of null
I'm getting error in this code, I'm trying to do an event where in when the page is load, it will do the...
Read more >
How to deal with TypeError: cannot read properties of null
While coding in Javascript, you must have at least once received a Type Error which has the message “cannot read properties of null”....
Read more >
Uncaught TypeError Cannot read property value of null
I have been getting an ERROR in the code as I'm trying to do an event where when the page is loaded, it...
Read more >
"Cannot read property 'value' of null" - When the variables is ...
Hey Mark,. Anytime you see 'cannot get value of null', it means the element you have selected is non existent. If you take...
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