Next.js Discord

Discord Forum

Error: Page "..." is missing param "..." in "generateStaticParams()"

Unanswered
Sloth bear posted this in #help-forum
Open in Discord
Sloth bearOP
I am trying to build using Github Pages and export now with Next 14, where this problem persist even though I am using "generateStaticParams"

jsx  
  export async function generateStaticParams() {
    return allComponents.map((component) => ({
      slug: component.url_path,
    }))
  }

0 Replies