-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Describe the bug
I upgrade from vue-debounce to v4.0.0 to v4.0.1 and the following error was raised by typescript compiler:
Could not find a declaration file for module 'vue-debounce'. '/myproject/node_modules/vue-debounce/dist/vue-debounce.min.mjs' implicitly has an 'any' type.
There are types at '/myproject/node_modules/vue-debounce/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'vue-debounce' library may need to update its package.json or typings.
8 import {debounce} from 'vue-debounce';
It seems that typing file is correct, however it doesn't apply to "vue-debounce.min.mjs".
A possible solution it may be to include "index.d.mts".
Version of Vue
3.4.15
Version of Typescript
Vue-tsc 1.8.27
Version of Vite
4.5.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels