Next.js getStaticPaths Next.js getStaticPaths reactjs reactjs

Next.js getStaticPaths


A required parameter (id) was not provided as a string in getStaticPaths for / movies / [id]

id should be a string as suggested by the error. Upon hitting the api from your browser, you can see that the id is not a string but a number. You need to convert it to string.

params: {id: movie.show.id.toString()},