or.npm put up -D nuxt-typed-router@legacy.Setup.Sign up the element in the nuxt.config.ts, carried out!export default defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When a route has actually no params described, the params home will definitely not also be actually on call as an alternative in the router.router.push('/ login/bar')// Inaccuracy!router.push( name: 'login', params: foo: 'bar')// Error!router.push(" https://vuejsfeed.com/login")// Really good!router.push( name: 'login')// Really good!pages/user/ [i.d.] vue.When a route has actually a needed param described, getting through specifically to this route will definitely toss a mistake if you don't deliver a params property or even if you put an inappropriate param.router.push( title: 'user-id')// Error!router.push( title: 'user-id', params: pub: 'baz')// Inaccuracy!router.push('/ customer')// Inaccuracy!const id="ey7878".router.push('/ consumer/$ i.d. ')// Good!router.push( label: 'user-id', params: id)// Good!router.push('/ customer/$ id/ baguette')// Inaccuracy!For addressed paths, the params residential or commercial property is going to be offered and appropriately keyed.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Great!