or.npm put in -D nuxt-typed-router@legacy.Setup.Register the element in the nuxt.config.ts, done!export default defineNuxtConfig( components: [' nuxt-typed-router'],. ).Instance Use.pages/login. vue.When an option has actually no params determined, the params home will certainly certainly not even be offered as a possibility in the router.router.push('/ login/bar')// Inaccuracy!router.push( name: 'login', params: foo: 'bar')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Great!router.push( name: 'login')// Great!pages/user/ [i.d.] vue.When a route has a required param defined, getting through exactly to this path will certainly throw an inaccuracy if you don't offer a params building or if you place an inappropriate param.router.push( title: 'user-id')// Error!router.push( name: 'user-id', params: pub: 'baz')// Error!router.push('/ customer')// Error!const id="ey7878".router.push('/ customer/$ i.d. ')// Great!router.push( name: 'user-id', params: id)// Great!router.push('/ user/$ i.d./ jewel')// Mistake!For dealt with courses, the params residential or commercial property will certainly be actually available and also correctly typed in.const route = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Good!