Closed lithdew closed 1 week ago
I'm wondering if this could be a bun
issue wrt resolving the dependencies. I haven't used bun
before and I'm not aware of anyone having used it with web3js yet.
If you could provide a complete repro that'd be really helpful, since I don't think any of us have anything similar yet.
Can you also clarify whether you've tested this with bun
outside of Docker? Or are you only using bun in the Dockerfile? It'd be good to narrow this down to bun or the Docker image as a starting point.
Do you have peer = false
configured in your bunfig
?
https://bun.sh/docs/runtime/bunfig#install-peer
ws
is a peer dependency; if you have auto-install-peers disabled, this would explain why it's missing.
Feel free to reopen this if that's not the case.
Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up.
Overview
I tried to build and run a Vite project using @solana/web3.js@rc in Docker. I tried the docker images gcr.io/distroless/nodejs22-debian12 and node:22-slim and ran into the same error.
The error:
Steps to reproduce
The
Dockerfile
:Let me know if you need a full reproduction.
Description of bug
'ws' should be resolved inside of @solana/rpc-subscriptions-transport-websocket in a NodeJS environment.