Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
juanparati opened this issue Jan 23, 2024 · 2 comments
Open

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

juanparati opened this issue Jan 23, 2024 · 2 comments

Comments

@juanparati
Copy link

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

@juanparati
Copy link
Author

Additional info: gxmari007/vite-plugin-eslint#60

@dhershman1
Copy link
Owner

If you're using vue3, please try v5.0.0 if you still run into problems please post back on this issue, I'll keep it open in the meantime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants