Skip to content

Hosting: "Uncaught SyntaxError: Unexpected token <" #8751

Discussion options

You must be logged in to vote

The solution is to add the following in the register-service-worker.js:

updatefound (registration) {
    try {
      registration.update()
    } catch (err) {
      console.err('SW update failed:', err)
    }
  }

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@saifobeidat
Comment options

@kevinXmichael
Comment options

@ontwikkelfabriek
Comment options

Answer selected by kevinXmichael
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants