Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to add to Ecency Vision #24

Open
shawnpringle opened this issue May 5, 2023 · 1 comment
Open

Trying to add to Ecency Vision #24

shawnpringle opened this issue May 5, 2023 · 1 comment

Comments

@shawnpringle
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant