sound icon indicating copy to clipboard operation
sound copied to clipboard

Updated package.json to export type definitions

Open RaffaeleSgarro opened this issue 1 year ago • 12 comments

Without the types key in the export section of package.json the typescript compiler complains that cannot find a declaration file:

error TS7016: Could not find a declaration file for module '@vueuse/sound'. 'C:/[redacted]/node_modules/@vueuse/sound/dist/index.mjs' implicitly has an 'any' type.
  There are types at 'C:/[redacted]/node_modules/@vueuse/sound/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@vueuse/sound' library may need to update its package.json or typings.

21 import { useSound } from '@vueuse/sound';
                            ~~~~~~~~~~~~~~~


Found 1 error in src/App.vue:21

ERROR: "type-check" exited with 2.

Closes #42

RaffaeleSgarro avatar Aug 13 '23 06:08 RaffaeleSgarro

I think this is quite a urgent issue with simple solution. Hope this PR can be merge so soon..

oliver139 avatar Oct 03 '23 09:10 oliver139

The package doesn't work on new TS versions, hope this PR resolve it soon

mshamaseen avatar Nov 22 '23 22:11 mshamaseen

would appreciate if you can merge this @Tahul

mshamaseen avatar Nov 22 '23 22:11 mshamaseen

Hope this will be merged soon. Import problem with types error still exist

Sengulair avatar Feb 12 '24 18:02 Sengulair

I sincerely hope to get your help @Tahul

Emily-0616 avatar Mar 29 '24 02:03 Emily-0616

Please merge!

makroxyz avatar May 09 '24 07:05 makroxyz

Can this be merged?

ezBeanie avatar Jun 18 '24 11:06 ezBeanie

@Tahul Is this repo no longer maintain?

oliver139 avatar Jul 23 '24 03:07 oliver139

@Tahul Can you please merge this?

itsrafsanjani avatar Aug 23 '24 15:08 itsrafsanjani