I have a typescript project which uses node:worker_threads. However, when I try to debug individual ts files, I keep getting error
Error: Cannot find module 'node:worker_threads'
It should be noted that the problem shouldn't be in the node version, I am running node 16.19.0 and have
"engines": {
"node": "16.x"
}
in my package.json. Any other idea what might have gone wrong? I am running Ubuntu 20.04 on WSL2, uninstalled node via apt and set it up by nvm. Thank you