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.

Navigation cache bug in JQuery crashes app

See original GitHub issue

After successfully building, this error suddenly comes in at one point:

TypeError: document.getElementById(...) is null
componentDidUpdate/<
project/.cache/navigation.js:173

  170 | if (document.title) {
  171 |   pageName = document.title
  172 | }
> 173 | const pageHeadings = document
  174 |   .getElementById(`gatsby-focus-wrapper`)
  175 |   .getElementsByTagName(`h1`)
  176 | if (pageHeadings && pageHeadings.length) {

Thank you And I’m available to help

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
SamBensoncommented, Mar 12, 2020

Still having this issue - any fixes in sight? Updating doesn’t appear to make any difference.

5reactions
jodiedoubledaycommented, Feb 5, 2020

I’m still having this issue even though I’m using gatsby 2.19.12 It weirdly seems to occur only when using Gatsby Image.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bizarre Intermittent Javascript Bug While Using P5.js in ...
I am not sure why this error appears, and it has intermittently appeared during both successful and crashed runs of the app, which...
Read more >
Topic: jQuery problems | Themeco Community
Ok, guyz, i made one-page navigation website with other “Read More”-typed pages. ... btw “Browser Cache” option in W3TC crashes the website.
Read more >
Why Does TikTok Keep Crashing? - ITGeared
This article will explain why does TikTok keep crashing. It also explains how to fix it and what you can do to prevent...
Read more >
12497 (jQuery 1.8.1 transitions crashing android 2.3.4 browser)
The following code seems to be crashing the stock browser on Android 2.3.4 devices when using jQuery 1.8.1: $(".feedback_active").
Read more >
How to Fix Divi - A Complete Guide To Solve Issues and ...
#1. Clear Your Cache (Especially After Every Update) · Clear any caching plugin. Most of you probably have a caching plugin. · Clear...
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