or.npm set up -D nuxt-typed-router@legacy.Setup.Sign up the component in the nuxt.config.ts, carried out!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Instance Usage.pages/login. vue.When a course has actually no params determined, the params home will definitely certainly not also be on call as a possibility in the router.router.push('/ login/bar')// Inaccuracy!router.push( name: 'login', params: foo: 'club')// Mistake!router.push(" https://vuejsfeed.com/login")// Good!router.push( name: 'login')// Excellent!pages/user/ [id] vue.When an option has a demanded param described, getting through precisely to this path will definitely toss an inaccuracy if you don't supply a params residential property or even if you put an incorrect param.router.push( name: 'user-id')// Error!router.push( name: 'user-id', params: club: 'baz')// Error!router.push('/ consumer')// Mistake!const id="ey7878".router.push('/ user/$ id ')// Really good!router.push( title: 'user-id', params: id)// Good!router.push('/ user/$ id/ jewel')// Error!For solved courses, the params home is going to be actually accessible and also the right way typed in.const route = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Good!