Basic error page with Typescript and NuxtError
I'm trying to create a basic
error.vue
The main issue is that I can't seem to find a way to set a default statusCode.
Keeps throwing Vue: Object literal may only specify known properties, and statusCode does not exist in type
What's a good way to handle this. so that in the template I can do error.statusCode
and error.message
?0 Replies