Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

202
Views
TypeError: no se pueden leer las propiedades de nulo (leyendo 'toString') Siguiente js

He estado tratando de solucionar este problema durante 2 o 3 días, pero no puedo solucionarlo. Ocurre cuando trato de construir la aplicación con la yarn build aquí está el error

 > Build error occurred TypeError: Cannot read properties of null (reading 'toString')

mi código-

 export async function getStaticPaths(){ // get the user's image from another table const users = await prisma.UserInfo.findMany(); const paths = users.map((user: any) => ({ params: { pid: user.name}, // Error: A required parameter (pid) was not provided as a string in getStaticPaths for /users/[pid]. })) console.log(paths) return { paths, fallback: false } } export async function getStaticProps({ params }: any) { const user = await prisma.UserInfo.findUnique({ where: { name: params.pid }, }); console.log(user) return { props: { user } }; }

¿Alguna idea sobre cómo solucionar este problema? gracias Gran dia'

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!