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.

[gatsby-plugin-offline] IOS 13 Safari error `null is not an object (evaluating 'n.announcementRef.current.innerText')`

See original GitHub issue

I got error in Sentry logs, it points to ./.cache/navigation.js in apply at line 177:52

      const pageHeadings = document.querySelectorAll(`#gatsby-focus-wrapper h1`)
      if (pageHeadings && pageHeadings.length) {
        pageName = pageHeadings[0].textContent
      }
      const newAnnouncement = `Navigated to ${pageName}`
      const oldAnnouncement = this.announcementRef.current.innerText // error on this line
      if (oldAnnouncement !== newAnnouncement) {
        this.announcementRef.current.innerText = newAnnouncement
      }
    })
  }
Screenshot 2020-05-12 08 44 19

which triggered after 2 consecutive errors in the console InvalidStateError: Service Worker state is redundant

Screenshot 2020-05-12 08 48 10

As you can see on last screenshot - there is navigation action from /en/account/transfer, to /en/account/withdraw. Both routes are fully dynamic, and do not pre-rendered at build time.

iOS 13.3.1 Mobile Safari 13.0.5

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
JustFly1984commented, May 13, 2020

@madalynrose I can’t create a reproduction, since I got only single error in logs in Sentry in single project from many. I will update gatsby.js to the latest version in all my projects and will look if it repeats in logs

0reactions
ascorbiccommented, Jun 4, 2020

Hi. I’m going to close this now, as we can’t do much to help without a reproduction. If you are able to create a minimal reproduction for this then please do reopen the issue. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 4.3.1 on Safari iOS 10.3.4: TypeError null is not an ...
null is not an object (evaluating '$scope.userprofile.wallet_provider.toLowerCase'). I use to face to same issue, but I resole it by if/else ...
Read more >
Safari: "JavaScript error detected! Error: TypeError: 'null' is not ...
From the error, it seems like the JavaScript is expecting a certain type of object, but when the JavaScript is running in your...
Read more >
Safari Technology Preview Release Notes - Apple Developer
Note: Shared Tab Groups and syncing for Tab Groups, Website Settings, and Web Extensions are not enabled in this release. WebAssembly. Fixed error...
Read more >
There was an error loading the content error message ...
Undefined is not an object (evaluating 'e[t].call')". This is what I see in console, when I am debugging iPhone in Safari: TypeError: undefined ......
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