Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If the third parameter is omitted in router.push(), will cause unhandledRejectionError on SSR #3037

Closed
lmf opened this issue Nov 23, 2019 · 1 comment

Comments

@lmf
Copy link

lmf commented Nov 23, 2019

Version

3.1.3

Reproduction link

https://jsfiddle.net/chrisvfritz/50wL7mdz/

Steps to reproduce

1、router.js use beforeEnter in path

{
    path: '/index',
    component: Index,
    beforeEnter: (to, from, next) => {
        next({ path: '/' })
    }
  1. when SSR, this will: router.push('/index') => history.confirmTransition => abort()

What is expected?

Don't make unhandledRejectionError

What is actually happening?

unhandledRejectionError

@posva
Copy link
Member

posva commented Nov 23, 2019

Please see related issues and #2881 (comment)

@posva posva closed this as completed Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants