Closed ibash closed 2 years ago
Should fix #808
@ibash sorry to bother you, any estimation on fixing this conflict? I am more than happy to help just not sure how... Facing this issue right now and I don't want to patch the package...
@tyagow Unfortunately there's nothing I can do, it's up to the apollo team to merge it and it seems like they've abandoned this package :(
Your best bet is patching the package, happy to help you set that up if need be. But in general:
node_modules/subscriptions-transport-ws/dist/client.js
with these changesnpx patch-package subscriptions-transport-ws
@glasser any chance this can be merged?
@tyagow Unfortunately there's nothing I can do, it's up to the apollo team to merge it and it seems like they've abandoned this package :(
Your best bet is patching the package, happy to help you set that up if need be. But in general:
- Follow setup instructions here
- Edit
node_modules/subscriptions-transport-ws/dist/client.js
with these changes- Run
npx patch-package subscriptions-transport-ws
Thanks for the instructions, I am using this approach.
This package is used by Apollo Client which makes the errors extra irritating as I would have to fork and pin both packages.
client.close can sometimes lead to a synchronous call to close. This leads to the error: [TypeError: Cannot set property 'onopen' of null]
This change sets client to null before calling onClose, so that the second synchronous call does not try to cleanup the client.
TODO: