Skip to content

Navigation breaks upon unrelated error #2435

Discussion options

You must be logged in to vote

This wasn't intended but was part of the new behavior of RouterView with Vue 3. In practice, you are not expected to deploy applications with these kind of errors as they mean the page will always break when loaded. You can catch them with an error handler:

const app = createApp(App)
app.config.errorHandler = (e) => {
  console.log('OH NO', e)
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Neevalt
Comment options

@posva
Comment options

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