joshwcomeau / use-sound

A React Hook for playing sound effects
MIT License
2.61k stars 97 forks source link

Error in build nextjs typescript when importing use-sound #139

Open sshadmand opened 8 months ago

sshadmand commented 8 months ago
Type error: Could not find a declaration file for module 'use-sound'. '.../node_modules/use-sound/dist/use-sound.esm.js' implicitly has an 'any' type.
  There are types at '.../node_modules/use-sound/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'use-sound' library may need to update its package.json or typings.

Not sure if this means use-sound is not Typescript friendly.

fabioplaka commented 8 months ago

https://github.com/joshwcomeau/use-sound/issues/135#issuecomment-1723305858