Closed insanity54 closed 8 months ago
@insanity54 I saw this yesterday on a project I was updating dependencies for. websocket-polyfill
version 1.0.0
is a deprecation of the library and tries to shim in some default browser behavior in a different way. I got the same error as you're seeing when I tried to update. I haven't had time to dig into what the reason behind it is but in the meantime, if you downgrade that library to 0.0.3
it should work just fine for you.
Oh wonderful! websocket-polyfill@0.0.3
worked for me. Many thanks!
I'm brand new to NOSTR and I would like to use ndk to run some NIP-10 experiments.
I'm having some trouble getting started. I'm using node 18.19.1 and here is my script.
My .env file has
NOSTR_PUBLIC_KEY
andNOSTR_SECRET_KEY
defined using keys I generated on Primal. It also hasDEBUG='ndk:*'
When I start this program, I see errors.
I did Ctrl+F on
https://github.com/nostr-dev-kit/ndk
and I didn't see any mention of websockets. I looked in the examples dir and found hello world which importswebsocket-polyfill
.So I tried importing that myself.
More errors seen.
Any suggestions here?