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

can not find fallback ws package. #6

Closed
yjl9903 opened this issue Jul 11, 2023 · 1 comment
Closed

can not find fallback ws package. #6

yjl9903 opened this issue Jul 11, 2023 · 1 comment

Comments

@yjl9903
Copy link
Contributor

yjl9903 commented Jul 11, 2023

Using maria2 as a dependency, it can not find fallback ws package.

My vitest can not found ws, see https://github.com/yjl9903/naria2/actions/runs/5523638646/jobs/10074838176

And using it in esm also does not work:

$ git clone https://github.com/yjl9903/naria2.git
$ cd naria2
$ pnpm i
$ pnpm build
$ node scripts/spawn.mjs
Error: Not Found `WebSocket()` in globalThis or require()
    at createWebSocket (file:///.../naria2/node_modules/.pnpm/maria2@0.2.8-beta.2_cross-fetch@4.0.0_uuid@9.0.0_ws@8.13.0/node_modules/maria2/dist/index.mjs:232:11)
    at createSubprocess (file:///.../naria2/packages/naria2/dist/index.mjs:23:14)
    at bootstrap (file:///.../naria2/scripts/spawn.mjs:5:26)
    at file:///.../naria2/scripts/spawn.mjs:11:1
    at ModuleJob.run (node:internal/modules/esm/module_job:192:25)
@yjl9903 yjl9903 changed the title fails requiring ws module can not find fallback ws package. Jul 11, 2023
@hydrati
Copy link
Owner

hydrati commented Jul 11, 2023

  • Did you update to 0.3.0-beta.2?
  • Go and see new readme, sorry for my problem :(
    @yjl9903

@yjl9903 yjl9903 closed this as completed Jul 11, 2023
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

2 participants