#How to match not found pages

7 messages · Page 1 of 1 (latest)

glossy sandal
#

Hello, how do I create a page that matches the cases that aren't matched by nuxt router?

lucid cloud
#

create an error.vue page in the root folder

#

that page will match any unfound page and custom errors that you throw

#

and you can customize the content of it based on your needs

glossy sandal
#

@lucid cloud this still throws an error [nuxt] error caught during app initialization Error: Page not found: /foo

lucid cloud
#

Isn't this correct?

sweet zealot
#

try pages/[...slug].vue