Closed josefelbez closed 9 months ago
Yes, you can do import * as nip06 from 'nostr-tools/nip06.ts'
or something like that.
Yes, you can do
import * as nip06 from 'nostr-tools/nip06.ts'
or something like that.
Unfortunatelly there is no nostr-tools/nip06.ts, only way is to import from folder cjs or esm but this way we lose types, perhaps is there a better way to keep using the typed one?
Sorry, it's nostr-tools/nip06
.
Sorry, it's
nostr-tools/nip06
.
It does not make sense, can you confirm that you are using the same version as me? 2.1.3
@fiatjaf please can u reopen the issue?
Yes, I am using 2.1.3.
Can you try running it on Node, Deno or Bun?
Yes, I am using 2.1.3.
Can you try running it on Node, Deno or Bun?
Hi, tried with yarn, npm, deno and bun, only bun seems to work properly with types.
With yarn:
With npm:
with bun:
With deno seems to work but no types:
I used save exact to garantuee they were at the same version
Then it must be because you're using an old version of TypeScript? I'm guessing, I don't understand this mess.
Weirdly i'm using ts 5.2.2, but ok. I'll just do a workaround and remove the nip06 from my stuff.
Thanks for the help
I am sorry, but I really don't understand the JS ecosystem. I can barely make it work on my machine.
This is the solution: https://stackoverflow.com/a/70020984
Hey, after updating from 1.17 to 2.1.3 I realized that there is no exports for the nip06 anymore, is there a workaround?
It is still listed as within the lib but inaccessible, at least not typed