t4t5/nostr-react

Trying to add to Ecency Vision

Opened this issue · 1 comments

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")'.

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