Saltar al contenido

[Solved] Typescript: Debug Failure. False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`

Problema:

Mientras trabajo en mi proyecto TypeScript, me encuentro con el siguiente error:

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

Solución 1:

Primero actualizar Typescript:

npm i typescript@latest

y luego actualizar ts-node:

npm i ts-node@latest

Luego ejecutar npm run dev

Solución 2:

If solution 1 not working you can try this-

You have to update typeScript in your package.json file.

-first open your package.json file

-Underdependencies you can see there is typescript dependence present.

-Update its version to the very latest one 4.7.2.

-Then run npm install to get all packages & your error hopefully fixed

or-

You have to update  ts-node-dev packages in your package.json file.

-first open your package.json file

-Under dependencies, you can see there is ts-node-dev dependence present.

-Update its version to the very latest one 2.0.0-0.

Fuente

  • https://namespaceit.com/blog/typescript-debug-failure-false-expression-non-string-value-passed-to-tsresolvetypereferencedirective

Si te ha interesado este artículo y deseas un apoyo o asesoría en algún requerimiento, envíame un mensaje a: (info@juliopari.com) o sino a través de Linkedin: https://www.linkedin.com/in/juliopari/