Skip to content
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

having a node shebang in a bin file throws weird error #426

Open
hesxenon opened this issue Sep 4, 2024 · 0 comments
Open

having a node shebang in a bin file throws weird error #426

hesxenon opened this issue Sep 4, 2024 · 0 comments

Comments

@hesxenon
Copy link

hesxenon commented Sep 4, 2024

error in question:

[dnt] Transforming...
panicked at wasm/src/lib.rs:56:64:
called `Result::unwrap()` on an `Err` value: Error(JsValue(TypeError: Reflect.get called on non-object
TypeError: Reflect.get called on non-object
    at Reflect.get (<anonymous>)
    at https://jsr.io/@deno/dnt/0.41.3/lib/pkg/dnt_wasm.generated.js:500:29
    at handleError (https://jsr.io/@deno/dnt/0.41.3/lib/pkg/dnt_wasm.generated.js:256:14)
    at __wbg_get_e3c254076557e348 (https://jsr.io/@deno/dnt/0.41.3/lib/pkg/dnt_wasm.generated.js:499:14)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1459201)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1018501)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1100392)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:275633)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:2169100)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:68373)))

Stack:

Error
    at __wbg_new_abda76e883ba8a5f (https://jsr.io/@deno/dnt/0.41.3/lib/pkg/dnt_wasm.generated.js:560:19)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:2238478)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1543353)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1993049)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1748859)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1019755)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1100392)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:275633)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:2169100)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:68373)


error: Uncaught RuntimeError: unreachable
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1543391)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1993049)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1748859)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1019755)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1100392)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:275633)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:2169100)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:68373)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:1411129)
    at <anonymous> (file:///home/hesxenon/.local/share/deno-wasmbuild/ff8a4bb07617eb451a63c152ed467d9f5923293eaaab48642a517dac79281dec.wasm:1:2094887)

All because my file already contained a shebang which I only figured out because the docs mention "this will add a shebang at the top". Nothing serious, but maybe a better message would help here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant