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

Bug: port.addListener is not a function #23828

Closed
marvinhagemeister opened this issue May 15, 2024 · 1 comment
Closed

Bug: port.addListener is not a function #23828

marvinhagemeister opened this issue May 15, 2024 · 1 comment
Labels
bug Something isn't working correctly node API polyfill Related to various "node:*" modules APIs node compat

Comments

@marvinhagemeister
Copy link
Contributor

Getting an error with node's worker_threads module in vitest:

TypeError: port.addListener is not a function
 ❯ on node_modules/.pnpm/vitest@0.30.1_jsdom@21.1.1_terser@5.17.1/node_modules/vitest/dist/worker.js:43:16
 ❯ createBirpc node_modules/.pnpm/vitest@0.30.1_jsdom@21.1.1_terser@5.17.1/node_modules/vitest/dist/vendor-index.7dcbfa46.js:134:3
 ❯ init node_modules/.pnpm/vitest@0.30.1_jsdom@21.1.1_terser@5.17.1/node_modules/vitest/dist/worker.js:35:10
 ❯ run node_modules/.pnpm/vitest@0.30.1_jsdom@21.1.1_terser@5.17.1/node_modules/vitest/dist/worker.js:59:5
 ❯ node_modules/.pnpm/tinypool@0.4.0/node_modules/tinypool/dist/esm/worker.js:109:26

Steps to reproduce

  1. Clone https://github.com/urql-graphql/urql
  2. Run pnpm i
  3. Run DENO_FUTURE=1 deno task test

Version: Deno git 366aab9 (2024-05-15)

@marvinhagemeister marvinhagemeister added bug Something isn't working correctly node compat labels May 15, 2024
@bartlomieju bartlomieju added the node API polyfill Related to various "node:*" modules APIs label May 16, 2024
@marvinhagemeister
Copy link
Contributor Author

Closed by #23854

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node API polyfill Related to various "node:*" modules APIs node compat
Projects
None yet
Development

No branches or pull requests

2 participants