Questions tagged [getstaticpaths]

34 questions
0
votes
1 answer

NextJS: "TypeError: Cannot read property 'toLowerCase' of undefined"

While usign the getStaticPaths() and getStaticProps() I am getting the error NextJS: "TypeError: Cannot read property 'toLowerCase' of undefined"
0
votes
1 answer

Using Snowflake in NextJS can't connect or execute queries in getStaticPaths/getStaticProps

I've been tinkering around with NextJS for a bit now and am trying to convert an app to prerender static pages using getStaticProps and getStaticPaths with [id].js files for each page in their own separate folders (somthing like pages/posts/[id].js,…
VagrantC
  • 687
  • 2
  • 13
  • 31
0
votes
0 answers

How do I use my axios call for getStaticPaths and getStaticProps

I have a component which renders the response (Successfully verified, Has been verified already, and this token has expired) from making a call to my server from clicking a link in a Account Verification email I sent after registering. At very rare…
Antonio Pavicevac-Ortiz
  • 7,239
  • 17
  • 68
  • 141
-1
votes
1 answer

Error: A required parameter (productId) was not provided as a string in getStaticPaths for /products/[productId]

I would like to show 3 products from a JSON. I'm trying to do a NextJS web application. I'm just learning, and when I replicate the tutorial is everything correct, but I'm doing my own changes, and trying to create something different, but it…
1 2
3