viandwi24 / nuxt3-awesome-starter

a Nuxt 3 template and boilerplate with a lot of useful features. Nuxt 3 + Tailwindcss + Nuxt Layer

Home Page:https://nuxt3-awesome-starter.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

404 page only work with ` /404 ` route.

RayGuo-ergou opened this issue · comments

When entering any unknown route, it will only show Document not found unless I use the /404 route.

example

I have tried to create ~/error.vue and ~/layouts/error.vue but both does not work.

Please update your node version to the latest and use pnpm instead of npm. It worked for me.

Please update your node version to the latest and use pnpm instead of npm. It worked for me.

This bug even exists in template production (Please check the URL I provided).

I have tried to create ~/error.vue and ~/layouts/error.vue but both does not work.

in nuxt.config.ts, turn documentDriven to false

in nuxt.config.ts, turn documentDriven to false

Cheers, it works.

@viandwi24 After reading the Nuxt content document: This mode creates a direct binding between the content/ directory and pages. I reckon that this configuration is supposed to be set as false in this project. WDYT?