title: Getting "A required parameter (id) was not provided as a string in getStaticPaths" error in Next.js
body: <p>I have a problem with the <code>getStaticPaths</code> function.
  When I try to get a dynamic display with a parameter it shows me as error: <em><strong>A required parameter (id) was not provided as a string in getStaticPaths for / movies / [id]</strong></em> but if I use the other way above it works. Above all I am the documentation.</p>
  <pre><code>import fetch from 'node-fetch';
  
  
  function MovieSelect({movie}){
  
      return(
          &lt;div&gt;
              &lt;h1&gt;Test: {movie.name}&lt;/h1&gt;
              &lt;p&gt;{movie.summary.replace(/&lt;[/]?[pb]&gt;/g, '')}&lt;/p&gt;
              {movie.image ? &lt;img src={movie.image.medium} /&gt; : null}
          &lt;/div&gt;
      )
  }
  
  export async function getStaticPaths(){
      const request  = await fetch('https://api.tvmaze.com/search/shows?q=batman')
      const movies = await request.json()
  
      //const paths = movies.map(movie =&gt;`/movies/${movie.show.id}`)
  
      const paths = movies.map(movie =&gt;({
          params: {id: movie.show.id},
      }))
  
      return {
          paths,
          fallback: false
      }
  }
  
  export async function getStaticProps({params}){
      const request = await fetch(`https://api.tvmaze.com/shows/${params.id}`)
      const movie = await request.json()
  
      return{
          props:{
              movie
          }
      }
  }
  
  export default MovieSelect
  </code></pre>