If you have a question or an issue, please start a thread in our Github Discussions Forum. This forum is closed for new threads/ topics.
Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
export default ({ router }) => { router.beforeEach((to, from, next) => { const isTokenValid = false // temp if (!isTokenValid && to.path !== '/login') { next('/login') // GOT ERROR IN THIS LINE } else { next() } }) }
How can I fix it?
read this. https://github.com/vuejs/vue-router/issues/2881#issuecomment-520554378