or even.npm install -D nuxt-typed-router@legacy.Configuration.Sign up the component in the nuxt.config.ts, performed!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Example Consumption.pages/login. vue.When a path has actually no params specified, the params home is going to not also be actually offered as a choice in the hub.router.push('/ login/bar')// Error!router.push( name: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Great!router.push( name: 'login')// Good!pages/user/ [i.d.] vue.When an option has actually a called for param specified, browsing specifically to this route will throw an inaccuracy if you don't deliver a params home or if you put an incorrect param.router.push( title: 'user-id')// Error!router.push( name: 'user-id', params: bar: 'baz')// Mistake!router.push('/ customer')// Inaccuracy!const i.d.="ey7878".router.push('/ individual/$ i.d. ')// Good!router.push( label: 'user-id', params: i.d.)// Good!router.push('/ consumer/$ id/ baguette')// Inaccuracy!For fixed courses, the params home will be actually offered as well as the right way typed.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Good!