Skip to content

vue-debounce is not resolved after upgrade to v4.0.1 #88

@juanparati

Description

@juanparati

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions