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 property 'shadowRoot' of null

See original GitHub issue

Not sure what’s causing it, but this error pops up in my HA log from time to time.

https://[REDACTED]/local/lovelace-card-tools/card-tools.js:42:9 Uncaught TypeError: Cannot read property 'shadowRoot' of null

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
thomaslovencommented, Mar 18, 2019

It is entirely impossible for that error to appear if you have a version of card-tools which is less than 7 days old. It is even more impossible to get it on line 69 in the latest version, since that line doesn’t contain shadowRoot in any way.

Try actually updating. And please open a new issue if you suspect a bug, rather than replying to a month old one that’s marked as closed. You can’t expect anyone to read those.

1reaction
thomaslovencommented, Feb 15, 2019

Should be fixed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read properties of null (reading 'ShadowRoot') - Java ...
I am trying to web scrape using Java and Selenium but for one part of what I need to web scrape, it requires...
Read more >
Cannot read property 'shadowRoot' of null : r/GreaseMonkey
Hello. I'm trying to change some dom elements by dom manipulation using tampermonkey. But I get this error.
Read more >
TypeError: Cannot read property 'shadowRoot' of null #1
I used shadow-DOM-inject-styles as follow: constructor(private el: ElementRef) { const tabbar = this.el.nativeElement.querySelector('ion-tabs > ion-tabbar') ...
Read more >
TypeError: Cannot read property 'getElement' of null
I'm not understanding why. TypeError: Cannot read property 'getElement' of null 19 | 20 | let messageEl = element.shadowRoot.querySelector(' ...
Read more >
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 >

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