Trying to navigate to password page, vue-router throwing this error
Uncaught (in promise) Error: Navigation cancelled from "/" to "/password" with a new navigation.
Navigating to password page is successfully redirected but not sure why this error is throwing. I didnt observe this error before.
Vue router version: vue-router@3.3.4
On click on a button doing this.$router.push({name: 'password', query: {username: this.username}})
In router/index.js
{
path: '/',
component: loginComponent,
children: [
{
path: '/',
alias: '/login',
name: 'login',
component: () => import('../views/email.vue')
},
{
path: 'password',
name: 'password',
component: () => import('../views/password.vue')
}
]
}