Skip to content

Deno.listen shim: server._handle is null #140

@tjjfvi

Description

@tjjfvi
import { Deno } from "@deno/shim-deno"

Deno.listen({ port: 8000 })
.../node_modules/@deno/shim-deno/dist/deno/stable/functions/listen.js:48
    const listener = new Listener_js_1.Listener(server._handle.fd, {
                                                               ^
TypeError: Cannot read properties of null (reading 'fd')
    at Object.listen (.../node_modules/@deno/shim-deno/dist/deno/stable/functions/listen.js:48:64)
    at .../test.ts:4:6
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
$ node -v
v18.14.0

https://github.com/denoland/node_shims/blob/main/packages/shim-deno/src/deno/stable/functions/listen.ts#L58-L59

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions