Skip to content

Deno throws EINVAL: invalid argument exception on stat command without project files in the callstack #21165

@Gekuro

Description

@Gekuro

Deno is throwing an exception similar to the one seen in the closed issue #19067

deno run --allow-sys --allow-read --allow-env --allow-net main.ts
Not implemented: Server.setTimeout()
connected to Mongo deployment
error: Uncaught (in promise) Error: EINVAL: invalid argument, stat
    at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:91:9)
    at __node_internal_uvException (ext:deno_node/internal/errors.ts:184:10)
    at denoErrorToNodeError (ext:deno_node/internal/errors.ts:1845:14)
    at ext:deno_node/_fs/_fs_stat.ts:85:95
    at eventLoopTick (ext:core/01_core.js:189:11)

I was trying to port a project of mine from Node to Deno.
The callstack doesn't feature the project files or any dependency, so it is very hard to debug. For me, this is the bigger issue.

This should be reproducible on my project on Windows 11

git clone --branch switch-to-deno [email protected]:Gekuro/uni-mgr-api.git

@bartlomieju you asked to be notified if issue @19067 appears again, I thought maybe I should since this is similar :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions