DenoDDeno
Powered by
rabbit_rabbitR
Denoβ€’3y agoβ€’
4 replies
rabbit_rabbit

compiled artifact can't find deno.json

I'm using github actions to build and publish a binary like so

DENO_TLS_CA_STORE=system deno compile -A --unstable --target x86_64-unknown-linux-gnu --output binaries/web main.ts
DENO_TLS_CA_STORE=system deno compile -A --unstable --target x86_64-unknown-linux-gnu --output binaries/web main.ts


After downloading and unzipping the binary I noticed I have to add
chmod +x web
chmod +x web
which is fine, but then I see

error: Uncaught (in promise) Error: Could not find a deno.json file in the current directory or any parent directory.
error: Uncaught (in promise) Error: Could not find a deno.json file in the current directory or any parent directory.


even if I'm running in a directory with a deno.json file.

I'm running deno 1.37.0

Thanks in advance!
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Compiled Deno project can't import typescript code
localhostLlocalhost / help
14mo ago
Deno Compile Can't Find Node Module
werthanWwerthan / help
13mo ago
error: deno task couldn't find deno.json(c) on GitHub Action
OokerOOoker / help
16mo ago