process.env problems
I'm trying to run pre-existing node code with deno. https://gremlich.me/software-engineering/2024/using-next-with-deno/ fails for me just like most other code due to process.env not working. Is there some trick that I'm missing?
I
export DENO_FUTURE=1
deno run -A --unstable-fs npm:next dev
results in error: Uncaught (in promise) ReferenceError: process is not defined
at file:///workspaces/<censored>/web-console/src/env.js:35:16
This seems like it should work since i'm running stuff via npm:, which turns on all the legacy stuff.Using Next With Deno
One can use Next.JS with Deno finally!
1 Reply
Deno 2 will come with a global
process
variable out of the box. If you upgrade to a 2.0 rc or canary build you can use that today