Module workspace syntax causes error
s
sanjarcode
require("node:http")
gives module not found error. The old syntax, require("http")
works fine.This was very annoying, it took me an hour to solve this. Please add support for this.
Context (optional):
- Code: https://github.com/exemplar-codes/codevolution-nodejs/tree/deploying-nodejs-apps
- Tutorial I am doing: https://www.youtube.com/watch?v=yln_CffenYw
- I tried adding a .npmrcfile too with v16,17.0, but it didn't help.
Log In