Neubeki
Neubeki4mo ago

Compiled app binary.rs main thread panicked

I have compiled a small test application with version 1.45.5 of Deno. The application is just a demo.
export function add(a: number, b: number): number {
return a + b
}
console.log(add(1, 2))
export function add(a: number, b: number): number {
return a + b
}
console.log(add(1, 2))
This is the error I get:
thread 'main' panicked at cli/standalone/binary.rs:243:66:
called `Result::unwrap()` on an `Err` value: Error("missing field `env_vars_from_env_file`", line: 1, column: 724)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at /home/runner/work/deno/deno/runtime/tokio_util.rs:103:36:
called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(1), ...)
thread 'main' panicked at cli/standalone/binary.rs:243:66:
called `Result::unwrap()` on an `Err` value: Error("missing field `env_vars_from_env_file`", line: 1, column: 724)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at /home/runner/work/deno/deno/runtime/tokio_util.rs:103:36:
called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(1), ...)
I've set the DENORT_BIN env var, which might have influenced this or not.
1 Reply
marvinh.
marvinh.4mo ago
Does this error occur with the latest version of Deno too?