Replies: 3 comments 3 replies
-
Since this is a typechecking error, it is coming from TypeScript, not ts-node, which should narrow down your investigation. node:readline/promises is declared in @types/node, right? I would check your version of @types/node and then check the @types/node declarations to see if there are any unexpected surprises there. https://typestrong.org/ts-node/docs/troubleshooting#understanding-errors |
Beta Was this translation helpful? Give feedback.
-
Was an answer to this issue found? |
Beta Was this translation helpful? Give feedback.
-
The issue here is that the promise-based api hasn't yet been merged in |
Beta Was this translation helpful? Give feedback.
-
I'm getting an error:
TS2307: Cannot find module 'node:readline/promises' or its corresponding type declarations.
When trying to use:
import * as readline from 'node:readline/promises';
From node version 17.4.0:
https://nodejs.org/api/readline.html#readline
Any idea why this feature would be having a problem?
Beta Was this translation helpful? Give feedback.
All reactions