In node.js/ReactJs if I try to do
console.log(process); console.log(process?.env)
it will throw an error that process is not defined, while doing
process
console.log(process.env)
works fine. The question is: why it is failing?