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.

[BUG] Error in event handler: TypeError: Cannot read property 'l' of null

See original GitHub issue

Describe the bug

No dark theme on some websites

Steps to reproduce

  • visit a website

Expected behavior

Dark theme

Actual behavior

There is no dark theme, Dark Reader generates an error when trying to make a dark theme.

Error in event handler: TypeError: Cannot read property 'l' of null
    at modifyBgHSL (chrome-extension://eimadpbcbfnmbkopoojfekhnkhdbieeh/inject/index.js:1309:60)
    at modifyColorWithCache (chrome-extension://eimadpbcbfnmbkopoojfekhnkhdbieeh/inject/index.js:1244:26)
    at modifyBackgroundColor (chrome-extension://eimadpbcbfnmbkopoojfekhnkhdbieeh/inject/index.js:1332:16)
    at getModifiedFallbackStyle (chrome-extension://eimadpbcbfnmbkopoojfekhnkhdbieeh/inject/index.js:1939:38)
    at createStaticStyleOverrides (chrome-extension://eimadpbcbfnmbkopoojfekhnkhdbieeh/inject/index.js:3569:37)
    at createThemeAndWatchForUpdates (chrome-extension://eimadpbcbfnmbkopoojfekhnkhdbieeh/inject/index.js:3794:9)
    at createOrUpdateDynamicTheme (chrome-extension://eimadpbcbfnmbkopoojfekhnkhdbieeh/inject/index.js:3902:13)
    at onMessage (chrome-extension://eimadpbcbfnmbkopoojfekhnkhdbieeh/inject/index.js:3981:17)

The error is here: image

So far it’s occurred on YouTube (old theme) and GitHub (this page)

Screenshots

image image

System Information:

  • OS: macOS Mojave 10.14.6
  • Browser: Chrome 83.0.4103.97 (Official Build) (64-bit)
  • Dark Reader version: 4.9.11

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (11 by maintainers)

github_iconTop GitHub Comments

6reactions
Gustedcommented, Jun 28, 2020
alexanderbyToday at 15:30
Great, thanks!

I will push another update.

Their you go! Now you should wait on google to review it and push the update to users. Thank you for reporting this quite criticial issue!

0reactions
LoganDarkcommented, Jun 28, 2020

Okay man, I’m sorry for whatever I did. I just hope this fix gets released ASAP.

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
It has no problem when I execute this codes, but when I'm on other part of my codes this error occurs. Uncaught TypeError:...
Read more >
Uncaught TypeError cannot read property 'addeventlistener' of ...
In JavaScript, a very common error is the Uncaught TypeError Cannot read property 'addeventlistener' of null. This error occurs when JavaScript is not...
Read more >
How to Read React Errors (fix 'Cannot read property of ...
Cannot read property means the code was trying to read a property. This is a good clue! There are only a few ways...
Read more >
Uncaught TypeError: Cannot read property of undefined In
This error occurs in Chrome Browser when you read a property or call a method on an undefined object . There are a...
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