[gatsby-plugin-offline] IOS 13 Safari error `null is not an object (evaluating 'n.announcementRef.current.innerText')`
See original GitHub issueI 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
}
})
}
which triggered after 2 consecutive errors in the console InvalidStateError: Service Worker state is redundant
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:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
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!