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

Could not find a declaration file for module 'vue-countup-v3' #11

Closed
KnifeFed opened this issue Jul 18, 2023 · 2 comments
Closed

Could not find a declaration file for module 'vue-countup-v3' #11

KnifeFed opened this issue Jul 18, 2023 · 2 comments

Comments

@KnifeFed
Copy link

I'm using it with Nuxt 3 and when starting the dev server, vue-tsc throws this error:

Could not find a declaration file for module 'vue-countup-v3'. '/<project_dir>/node_modules/.pnpm/vue-countup-v3@1.3.0_vue@3.3.4/node_modules/vue-countup-v3/dist/vue-countup-v3.es.js' implicitly has an 'any' type.
  There are types at '/<project_dir>/node_modules/vue-countup-v3/dist/countup.vue.d.ts', but this result could not be resolved when respecting package.json "exports". The 'vue-countup-v3' library may need to update its package.json or typings.

Editing the package.json in node_modules and moving this to here got rid of the error message for me.

@jizai1125
Copy link
Owner

Can you provide a reproduction? I haven't found any issues.

@KnifeFed
Copy link
Author

KnifeFed commented Jul 19, 2023

Turns out it's fixed in Nuxt 3.6.3, which then caused this issue: nuxt/nuxt#22156
Fixed by upgrading from Nuxt 3.6.2 and removing those lines from nuxt.config.ts.

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