t4t5 / nostr-react

React Hooks for Nostr 🦤
MIT License
85 stars 14 forks source link

Trying to add to Ecency Vision #24

Open shawnpringle opened 1 year ago

shawnpringle commented 1 year ago

Trying to add to project results in an error. After adding the module via yarn, I am told I don't have loaders I need from only including a symbol from the library. Additionally I see these errors outputted on to the terminal:

ERROR in /home/leprechaun/Source/ecency-vision-development/node_modules/nostr-tools/lib/filter.d.ts(10,15): TS2693: 'string' only refers to a type, but is being used as a value here. ERROR in /home/leprechaun/Source/ecency-vision-development/node_modules/nostr-tools/lib/filter.d.ts(10,26): TS2693: 'string' only refers to a type, but is being used as a value here. ERROR in /home/leprechaun/Source/ecency-vision-development/node_modules/nostr-tools/lib/nip21.d.ts(10,65): TS2693: 'string' only refers to a type, but is being used as a value here. ERROR in /home/leprechaun/Source/ecency-vision-development/node_modules/nostr-tools/lib/nip21.d.ts(14,19): TS2693: 'string' only refers to a type, but is being used as a value here. ERROR in /home/leprechaun/Source/ecency-vision-development/node_modules/nostr-tools/lib/nip21.d.ts(16,12): TS2693: 'string' only refers to a type, but is being used as a value here. ERROR in /home/leprechaun/Source/ecency-vision-development/node_modules/nostr-tools/lib/nip21.d.ts(18,20): TS2339: Property 'DecodeResult' does not exist on type 'typeof import("/home/leprechaun/Source/ecency-vision-development/node_modules/nostr-tools/lib/nip19")'.

shawnpringle commented 1 year ago

I found this happens for only including a line with nostr-tools. Maybe it is a typescript issue?