[Solved] Typescript: Debug Failure. False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`
Problem:
While working on my typeScript project I am facing the following 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
Solution 1:
At first Update the Typescript:
npm i typescript@latest
And update the ts-node:
npm i ts-node@latest
Solution 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
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.
-Then run npm install to get all packages & your error hopefully fixedThank you for reading the article. For any further help feel free to contact with us.