When importing the following in a typescript nodejs app
import { pipeline } from "stream/promises";
Visual Studio Code (vscode) / eslint is showing an error message
Unable to resolve path to module 'stream/promises'
https://i.sstatic.net/bOTT7.png
This issue appeared suddenly.
node -v v16.13.2
pnpm -v 6.29.1
"@types/node": "^17.0.12"
stream/promises
is a part of node. I have confirmed that both the pipeline function and the TypeScript type are present and working, and the overall functionality of the application is maintained.
console.log({ pipeline }); // { pipeline: [Function: pipeline] }
Importing just stream
works without any errors. I have verified this issue on both Windows 10 and Linux systems. What could be causing this, and how can it be resolved without simply ignoring it?