-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to run a compiled nest app #28563
Comments
Can you add the error you get or what goes wrong? |
here are error messages.
the error may because
|
most the information not contained to the executable file. // debug information from the executable file
stat Stats {
dev: 0,
ino: 0,
mode: 0,
nlink: 0,
uid: 0,
gid: 0,
rdev: 0,
size: 154985,
blksize: 0,
blocks: 0,
mtime: null,
atime: null,
birthtime: null,
mtimeMs: null,
atimeMs: null,
birthtimeMs: null,
isFile: [Function: isFile],
isDirectory: [Function: isDirectory],
isSymbolicLink: [Function: isSymbolicLink],
isBlockDevice: [Function: isBlockDevice],
isFIFO: [Function: isFIFO],
isCharacterDevice: [Function: isCharacterDevice],
isSocket: [Function: isSocket],
ctime: null,
ctimeMs: null
}
// normally run
stat Stats {
dev: 2080,
ino: 815699,
mode: 33188,
nlink: 2,
uid: 1000,
gid: 1000,
rdev: 0,
size: 154985,
blksize: 4096,
blocks: 304,
mtime: 1985-10-26T08:15:00.000Z,
atime: 2025-03-20T16:02:40.530Z,
birthtime: 2025-03-20T16:02:40.330Z,
mtimeMs: 499162500000,
atimeMs: 1742486560530,
birthtimeMs: 1742486560330,
isFile: [Function: isFile],
isDirectory: [Function: isDirectory],
isSymbolicLink: [Function: isSymbolicLink],
isBlockDevice: [Function: isBlockDevice],
isFIFO: [Function: isFIFO],
isCharacterDevice: [Function: isCharacterDevice],
isSocket: [Function: isSocket],
ctime: 2025-03-20T16:02:40.000Z,
ctimeMs: 1742486560000
} |
Thank you. It helps to see what the error is because that often gives an idea on what the fix is. In this case, probably these values should be hardcoded with the date that the compiled executable was made: Lines 1257 to 1260 in 60b502d
|
yes. And according the definition of I think I can create a PR to fix it. |
That would be helpful. Thanks! I think as a quick fix we could just use deno/cli/lib/standalone/binary.rs Line 75 in 60b502d
|
yeah. I think we can storage a metadata called Also I think deno can add a interface in stdlib to get compile-time data like |
For convenience, I will use |
Version: Deno 2.2.4
With default nest.js template. Only changed main.js as
and tsconfig.json
How to Replication
deno run build
deno compile --unstable-sloppy-imports -A --include dist/ --output dist.bin dist/main.js
dist.bin
Note
I can get the expected behavior when use
deno dist/main.ts
, but unexpected when use binary.The text was updated successfully, but these errors were encountered: