Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

3.9K
Vistas
Error: Debug Failure. False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`,

I don't know why am I getting the following error which say:

Error: Debug Failure. False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.

When i try to import the package inquirer in my nodejs application.

console.log("Hello world!");
import inquirer from "inquirer";
....

To run the application I'm using ts-node and I'm running it as follows:

ts-node index.ts

This is my package.json file:

{
....
     "dependencies": {
    "chalk": "^4.1.2",
    "cors": "^2.8.5",
    "cross-fetch": "2.6.1",
    "dotenv": "^16.0.1",
    "inquirer": "^8.2.4",
    "ts-node": "^10.8.1",
    "typescript": "^4.7.3"
  },
  "devDependencies": {
    "@types/chalk": "^2.2.0",
    "@types/cors": "^2.8.12",
    "@types/inquirer": "^8.2.1",
    "@types/node": "^17.0.42",
    "nodemon": "^2.0.16",
    "ts-node-dev": "^2.0.0"
  }
....
}
  • I've tried to change the versions of inquirer and typescript but still it did not work.

What can be possibly the problem.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I have met with the same error but in my case I had no ts-node dependency installed, I fixed the error by adding that dependency.

You can also try to run your application with npx, in your case that will be npx ts-node index.ts.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda