after changing extensions to .mjs and adding -r esm getting error module not defined.
xs2bharat opened this issue · comments
Bharat Bhatia commented
Hi
I am pretty new to node.
After changing module file extensions from ".js" to ."mjs" and adding -r esm arguments to node, I am getting error "module" is not defined.
Do you know how to add esm support?