DenoDDeno
Powered by
EbikoE
Deno•2y ago•
11 replies
Ebiko

could not find "deno.json" after compile

I tried to use deno compile to create a binary with mixed results.

Using
deno compile -A main.ts
deno compile -A main.ts

creates a windows binary. (I have also tried with the target flag for Linux, same error)

Error


Transfering this binary to another host and trying to execute it, does not work, as it will throw an error:
Could not find a deno.json file in the current directory or any parent directory.
Could not find a deno.json file in the current directory or any parent directory.


Details


* executing this binary on the compiling host works (even without a deno.json in the folder)
* executing this (or the linux) binary on another host does not work (even when the deno.json is inside the same folder as the executable)


What am I missing here ?

Repo for References:
https://github.com/b3-business/secretshare/releases/tag/0.1

Thanks
GitHub
Release secretshare 0.1 demo · b3-business/secretshare
Demo Release 0.1 for secretshare
Release secretshare 0.1 demo · b3-business/secretshare
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

Could not find `.deno-deploy` folder after building project.
oneezyOoneezy / help
6mo ago
compiled artifact can't find deno.json
rabbit_rabbitRrabbit_rabbit / help
3y ago
Deno Compile Can't Find Node Module
werthanWwerthan / help
13mo ago
deno compile optimizations
subbedSsubbed / help
14mo ago