nostr-dev-kit / ndk

Nostr Development Kit with outbox-model support
https://nostr-dev-kit.github.io/ndk/
MIT License
366 stars 99 forks source link

Could Not Find Declaration File For Module @nostr-dev-kit/ndk in Version 2.4.2 #185

Closed gzuuus closed 7 months ago

gzuuus commented 9 months ago

This only happens with version 2.4.2, and previous versions do not exhibit this behavior.

Could not find a declaration file for module 
'@nostr-dev-kit/ndk'. '/home/.../node_modules/.pnpm/@nostr-dev-kit+ndk@2.4.2_typescript@5.3.3/node_modules/@nostr-dev-kit/ndk/dist/index.mjs' 
implicitly has an 'any' type.

Try `npm i --save-dev @types/nostr-dev-kit__ndk` if it exists or add a new declaration (.d.ts) file containing `declare module '@nostr-dev-kit/ndk';`ts(7016)
erskingardner commented 9 months ago

yup - I noticed the same. haven't had a chance to dig around into it though.

pablof7z commented 8 months ago

@gzuuus do you still get this in the latest versions?

gzuuus commented 7 months ago

No! seems fixed!