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

349
Views
Next.js no reconoce '@types/react'

Cuando intento ejecutar mi aplicación Next.js con npm run dev , aparece un mensaje de error que dice que no tengo los paquetes necesarios para ejecutar Next con TypeScript:

 Please install @types/react by running: npm install --save-dev @types/react If you are not trying to use TypeScript, please remove the tsconfig.json file from your package root (and any TypeScript files in your pages directory).

Sin embargo, el módulo '@types/react' está instalado. Intenté ejecutar npm install --save-dev @types/react y no recibí ningún mensaje de error (solo un montón de advertencias, pero no creo que sean el problema).

¿Cómo puedo resolver esto y ejecutar el proyecto?

about 4 years ago · Santiago Gelvez
2 answers
Answer question

0

Parece que hay un error en la versión actual de @types/react (específicamente v18.0.2), puede cambiar a 18.0.1 con npm install --save-dev @types/react@18.0.1

Fuente: https://github.com/vercel/next.js/issues/36085

about 4 years ago · Santiago Gelvez Report

0

¡ yarn add -D @types/react@18.0.1 y funcionó perfectamente! Netsu tiene razón, parece que hay un error en la versión actual de @types/react (específicamente v18.0.2).

about 4 years ago · Santiago Gelvez Report
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!