Open ennioVisco opened 11 months ago
Since I switched to recent versions of viem I am encountering this issue.
I believe it is related to this https://github.com/wagmi-dev/viem/issues/1329.
It seems that when in Node the method getNativeWebSockethere: https://github.com/wagmi-dev/isows/blob/5fd0ad1dd0f955383be002ae5d4a3b930dd4acb5/src/utils.ts#L3
getNativeWebSocket
does not detect global.WebSocket (while globalactually exists), meaning that for some reasons WebSocket was not imported before. Do we have to execute some specific commands to trigger the import of the ws npm module?
global.WebSocket
global
ws
Since I switched to recent versions of viem I am encountering this issue.
Possible related issue
I believe it is related to this https://github.com/wagmi-dev/viem/issues/1329.
Use case from which it comes
Error details
It seems that when in Node the method
getNativeWebSocket
here: https://github.com/wagmi-dev/isows/blob/5fd0ad1dd0f955383be002ae5d4a3b930dd4acb5/src/utils.ts#L3does not detect
global.WebSocket
(whileglobal
actually exists), meaning that for some reasons WebSocket was not imported before. Do we have to execute some specific commands to trigger the import of thews
npm module?