jose
Environment Variable always returns undefined
I'm just trying to import the values from dotenv to the code, but it always returns undefined.
deno version: 1.39.1
running command: deno run --allow-read --allow-env main.ts
dotenv content:
main.ts content:
I also tried
result is always:
Update: also tried
deno run --env --allow-env main.ts
and it still is undefined.21 replies