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

315
Views
Error de compilación del proyecto Next.js: punto de entrada para la biblioteca de tipo implícito 'compilación'

Estoy tratando de construir el proyecto nextjs y obtengo este error:

 Type error: Cannot find type definition file for 'build'. The file is in the program because: Entry point for implicit type library 'build'

¿Cómo puedo construir sin este error?

Así es como se ve package.json:

 { "name": "frontend", "version": "0.1.0", "private": true, "license": "fa", "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint" }, "dependencies": { "@ckeditor/ckeditor5-alignment": "^33.0.0", "@ckeditor/ckeditor5-build-classic": "^33.0.0", "@ckeditor/ckeditor5-code-block": "^33.0.0", "@ckeditor/ckeditor5-react": "^4.0.0", "@hookform/resolvers": "^2.8.8", "@types/": "ckeditor/ckeditor5-alignment", "axios": "^0.26.0", "dompurify": "^2.3.6", "highlight.js": "^11.5.0", "isomorphic-dompurify": "^0.18.0", "mobx": "^6.4.2", "mobx-react-lite": "^3.3.0", "next": "^12.1.5", "nextjs-progressbar": "^0.0.14", "react": "^18.0.0", "react-dom": "^18.0.0", "react-hook-form": "^7.27.1", "sass": "^1.49.9", "yup": "^0.32.11" }, "devDependencies": { "@types/node": "^17.0.25", "@types/react": "^18.0.6", "eslint": "8.10.0", "eslint-config-next": "12.1.0", "typescript": "^4.6.3" } }

Estoy tratando de construir usando el comando de construcción de hilo

¿Por qué recibo este error y cómo puedo deshacerme de él?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

El problema es causado por esta línea en su package.json :

 "@types/": "ckeditor/ckeditor5-alignment",

Parece que yarn add salió mal. Desinstálelo, elimínelo de su paquete.json, y debería estar listo :)

Este problema ocurre cuando tiene subdirectorios de un directorio typeRoots (en este caso, node_modules/@types ) que no contienen index.d.ts .

Estoy de acuerdo, no es un mensaje de error muy claro. Para obtener más información, Microsoft/TypeScript #27956 analiza este mismo problema.

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