denoland / denoland/node_shims
`Deno.listen` shim: `server._handle` is null
- Dominant language
- TypeScript
- Stars
- 160
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
```js
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.