For the following import in a typescript nodejs app
import { pipeline } from "stream/promises";
vscode / eslint is complaining Unable to resolve path to module 'stream/promises'

This started occurring all of a sudden.
node -v v16.13.2
pnpm -v 6.29.1
"@types/node": "^17.0.12"
stream/promises is part of node. I've confirmed that the pipeline function and typescript type exist and work and the overall app still functions.
console.log({ pipeline }); // { pipeline: [Function: pipeline] }
Importing just stream works with no complaints. I've confirmed this error on a Windows 10 and Linux computer. Whats going on and how to resolve it without ignoring it?
Need to make sure your node version is > v15. Note that if you're using nvm, your terminal node version could be different from the version vscode is using. You can see which version you have with nvm unload; node -v. You can consider adding nvm to your rc script files but sometimes it doesn't resolve fast enough and vs code complains.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With