Next.js Discord

Discord Forum

The provided export path doesn't match the page

Answered
Bengal posted this in #help-forum
Open in Discord
BengalOP
Hi! I have a path like something/[slug] then something/page/[page] and I keep getting this error https://nextjs.org/docs/messages/export-path-mismatch, yet when I try to apply that to test it out, the exportPathMap is not usable on the app router. Will I have to change my paths? All are statically generated
Answered by Bengal
Issue was that some [slug] was either null or undefined. Resolved.
View full answer

4 Replies

are you using App Routing or Pages Routing?
BengalOP
Using the app router
then idk how to help you, sorry
BengalOP
Issue was that some [slug] was either null or undefined. Resolved.
Answer