Error missing param in generate staticParams()
Unanswered
Hunting wasp posted this in #help-forum
Hunting waspOP
I suddenly have error through all places I used generate staticParams on my app. There's is the error message : Error: Page "/catalogue/[category]/page" is missing param "/catalogue/Les%20Salades" in "generateStaticParams()", which is required with "output: export" config.
but in my page file I have this
const res = await fetch('https://myapiurl/categories');
const data:CategoryData = await res.json()
return data.data.map(cat=>(
{category: cat.name}
but in my page file I have this
const res = await fetch('https://myapiurl/categories');
const data:CategoryData = await res.json()
return data.data.map(cat=>(
{category: cat.name}