joshwcomeau / use-sound

A React Hook for playing sound effects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in build nextjs typescript when importing use-sound

sshadmand opened this issue · comments

commented
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.