└─ $ ▶ deno run --allow-read --allow-net server.ts
error: Uncaught NotFound: No such file or directory (os error 2)
at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
at Object.sendAsync ($deno$/ops/dispatch_json.ts:98:10)
at async Object.open ($deno$/files.ts:37:15)
at async Object.readFile ($deno$/read_file.ts:13:16)
at async load (https://deno.land/x/denv/mod.ts:19:15)
at async https://deno.land/x/denv/mod.ts:29:1
Looks like your denv module is missing. Maybe you weren't connected to the internet when you ran the program and Deno couldn't load the module. You need an active net connection to get the denv and abc modules.
Thanks Saswata. I removed the cache dir (~/.cache/deno) and executed the deno run command again. Got the same error alas. This time I was on a network cable (previously on wifi) and deno didn't report any errors during all download. I'm giving up I'm afraid. The message is not very clear and Google is not my friend in this instance.
After the first code snippet, I get an error:
Any thoughts on whats going wrong?
Looks like your denv module is missing. Maybe you weren't connected to the internet when you ran the program and Deno couldn't load the module. You need an active net connection to get the denv and abc modules.
Thanks Saswata. I removed the cache dir (~/.cache/deno) and executed the deno run command again. Got the same error alas. This time I was on a network cable (previously on wifi) and deno didn't report any errors during all download. I'm giving up I'm afraid. The message is not very clear and Google is not my friend in this instance.
you are missing .env file
That was the solution! It seems we need an empty .env in the project dir. Thanks Nikola!
NP. I have made same mistake :D