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.

updateReleasesCount: Uncaught (in promise) TypeError: Cannot read property 'textContent' of null

See original GitHub issue
Uncaught (in promise) TypeError: Cannot read property 'textContent' of null
    at updateReleasesCount (content.js:1605)
    at add_releases_tab (content.js:1622)
    at enableFeature (content.js:806)
    at <anonymous>
  function updateReleasesCount() {
    if (isRepoRoot()) {
      // >>>>>>>>>>>>>>>>>>>> THERE >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      const releasesCount = select_dom_default()('.numbers-summary a[href$="/releases"] .num').textContent.trim();
      localCache = {
        [repoKey]: releasesCount
      };
      browser.storage.local.set(localCache);
    }
  }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
hkdobrevcommented, Dec 22, 2017

This is reproducible even on a repo homepage without the tree segment: https://github.com/sindresorhus/refined-github?files=1

https://github.com/sindresorhus/refined-github?files=1
1reaction
fregantecommented, Dec 22, 2017

Wow, how did you get there? Even GitHub has bugs on that page

screen shot 2017-12-22 at 10 44 50

Anyway, updates are needed to page-detect.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property 'textContent' of null ...
I am trying to use dc.js to implement the crossfilter and d3. I am almost successful. When I run my code in JSFiddle,...
Read more >
updateReleasesCount: Uncaught (in promise) TypeError ...
Uncaught (in promise ) TypeError: Cannot read property 'textContent' of null at updateReleasesCount (content.js:1605) at add_releases_tab ...
Read more >
Uncaught TypeError: Cannot read property 'textContent' of null
I have an HTML file with some code and I'm trying to log the text content to the console. I'm getting the following...
Read more >
Cannot read property 'textContent' of null - JavaScript
Hi, I'm trying to follow a tutorial on building a calculator, mainly to understand the logic for my own react/redux project.
Read more >
uncaught typeerror cannot set properties of null ... - You.com
its not letting me run the showScore function script.js:249 Uncaught TypeError: Cannot set properties of null (setting 'textContent').
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