Next.js Discord

Discord Forum

Problem with generateStaticParams

Unanswered
Schweizer Laufhund posted this in #help-forum
Open in Discord
Schweizer LaufhundOP
So I'm migrating from Vite to NextJS but i'm running into this error.
 ⨯ Error: Page "/[[...slug]]/page" is missing param "/2024/Winter" in "generateStaticParams()", which is required with "output: export" config.
    at DevServer.renderToResponseWithComponentsImpl (/home/gene/React/Anichart/client/node_modules/next/dist/server/base-server.js:1030:27) {
  page: '/2024/Winter'
}

/2024/winter is a link to a certain route

1 Reply

Schweizer LaufhundOP
Here's my current file structure, App.tsx contains all my routes. I haven't done any dynamic routing yet