or.npm put up -D nuxt-typed-router@legacy.Configuration.Sign up the element in the nuxt.config.ts, carried out!export default defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When a route has no params described, the params property is going to not even be accessible as an option in the modem.router.push('/ login/bar')// Inaccuracy!router.push( label: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Good!router.push( label: 'login')// Really good!pages/user/ [i.d.] vue.When a route has actually a demanded param determined, navigating precisely to this route will toss an error if you do not deliver a params building or even if you put an inappropriate param.router.push( name: 'user-id')// Inaccuracy!router.push( name: 'user-id', params: club: 'baz')// Mistake!router.push('/ consumer')// Mistake!const id="ey7878".router.push('/ consumer/$ id ')// Good!router.push( name: 'user-id', params: id)// Great!router.push('/ individual/$ i.d./ baguette')// Error!For addressed courses, the params property is going to be offered as well as accurately entered.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Really good!