hodlbod on Nostr: Just updated nostr-tools from 1.7.4 to 1.12, and now I'm getting some bizarre ...
Just updated nostr-tools from 1.7.4 to 1.12, and now I'm getting some bizarre typescript errors, any ideas for how to fix them?
Error: Module '"nostr-tools"' has no exported member 'generatePrivateKey'. (ts)
import {generatePrivateKey} from "nostr-tools"
Typescript doesn't complain about stuff like `import {nip19} from "nostr-tools"`, it seems to only be exports that are re-exported from index.ts.
fiatjaf (nprofile…6pac) PABLOF7z (nprofile…lpf4)Published at
2023-07-03 14:48:34Event JSON
{
"id": "1fb56ed817d9755eced62ccc0fe93ed4b08a89ee8d66696021e6686d6853a3e3",
"pubkey": "97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322",
"created_at": 1688395714,
"kind": 1,
"tags": [
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"wss://relay.nostr.bg",
"fiatjaf"
],
[
"p",
"fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52",
"wss://brb.io",
"PABLOF7z"
],
[
"client",
"coracle"
]
],
"content": "Just updated nostr-tools from 1.7.4 to 1.12, and now I'm getting some bizarre typescript errors, any ideas for how to fix them?\n\nError: Module '\"nostr-tools\"' has no exported member 'generatePrivateKey'. (ts)\n import {generatePrivateKey} from \"nostr-tools\"\n\nTypescript doesn't complain about stuff like `import {nip19} from \"nostr-tools\"`, it seems to only be exports that are re-exported from index.ts.\n\nnostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpz3mhxue69uhhyetvv9ujumn0wd68ytnzvuqjyamnwvaz7tmwdaehgu3dwejhy6txd9jkgtnhv4kxcmmjv3jhytnwv46qzxthwden5te0dehhxarj9eax2cn9v3jk2tnrd3hh2eqpz4mhxue69uhkummnw3ezumtfd3hh2tnvdakqz9thwden5te0v4jx2m3wdehhxarj9ekxzmnyqyxhwumn8ghj7mn0wvhxcmmvqywhwumn8ghj7mn0wd68yttsw43zuam9d3kx7unyv4ezumn9wsq3samnwvaz7tmjv4kxz7fwdehhxarjv96xjtnrdaksz9nhwden5te0wfjkccte9ehx7um5wghxyctwvsq3yamnwvaz7tmwdaehgu3w0f3xgtn8vuq3qamnwvaz7tmwdaehgu3wwa5kuegpwpmhxue69uhk7enxvd5xz6tw9ec82cs2pfmhxue69uhk2tnwdaejumr0ds98wumn8ghj7mn0wvhxcmmvpfmhxue69uhkummnw3ezuun9d3shjetj9eek2znhwden5te0wfjkccte9ehx7um5wghxyec2waehxw309ahkvenrdpskjm3wwp6kyqg3waehxw309ahx7um5wghxcafwddjs3x6pac nostr:nprofile1qqs04xzt6ldm9qhs0ctw0t58kf4z57umjzmjg6jywu0seadwtqqc75spp3mhxue69uhkyunz9e5k7qgjwaehxw309ahx7um5wgh8vvrv9e5k7qg4waehxw309ahx7um5wghxxmmfdehhxtnfduq3vamnwvaz7tmjwdekccte9ehx7um5wghxuet5qyf8wumn8ghj7un9d3shjtnxxaazu6t0qyf8wumn8ghj7ur4wfcxcetsv9njuetnqy2hwumn8ghj7etyv4hzumn0wd68ytnvv9hxgqgdwaehxw309ahx7uewd3hkcqgcwaehxw309amk2mrrdakk2tnwdaehgu3wwa5kuegpz3mhxue69uhhyetvv9ujuerpd46hxtnfduq3vamnwvaz7tmpw3kxzuewdehhxarj9ekxzmnyqyd8wumn8ghj7un9d3shjtnwwdjkxcn4de4k2u3wvdhk6qguwaehxw309ahx7um5wgknqvfwvfhkcapwda38xetjwejhyqgkwaehxw309aex2mrp0yhxummnw3ezucnpdejqzyrhwden5te0dehhxarj9emkjmn9vzlpf4",
"sig": "8b91c72653f9a493402b123c7fec57c5ee30105fd809b184e88d42ff20337b435e08921c88279873a810309afe31d3ced6446b80df7a7c91d473b26c0f075ba7"
}