I am currently working with Nuxt JS
version 2.9.1 and I am facing an issue with the transition function. Despite having some parameters, they are not accessible during page load:
export default {
transition (to, from) {
if (from.params.id) console.log(from.params.id)
}
}
An error has occurred: TypeError: Cannot read property 'params' of undefined
Can anyone provide a solution to fix this error?