Failed deployment Deno Deploy
Hey guys !
First of all I'm very new to Deno and trying out the whole toolchain because it seems so promising.
I'm actually trying do deploy a small app using Deno Deploy but I'm stuck with this error :
ReferenceError: process is not defined
I'm not even using an npm package.
I'm using urql imported via jsr with import * from "jsr:@urql/core@5.0.8";
I have no clue what I'm doing wrong because it works locally ™️
Can someone help ? 🙏
7 Replies
Here is my
deno.json config if it can help
As you can see it errors out because it can't find
process in Deno there's no such thing, make sure you get rid of it, if you need to read envs, use Deno.envYes I'm aware but that's not my code, that's comming from a JSR lib ...
I see you have your own scripts to build and develop, what bundler are you using? You can instruct it to define it to what it expects
I'm using Fresh, hence the custom
build task.
I am also using KV hence the the custom start with --unstable-kv.
I am not using any custom bundler.
When setting up the project on deno deploy I chose the Fresh (automatic) option for the Framework preset.
Also I need to mention that serving the app in dev mode with deno task start works perfectly fine.
Thanks for the belp btw 🙏
no idea 😦