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

TypeScript Error with Auto-Imported Exports After Installing @vueuse/motion #225

Open
cloudfinch-shivansh opened this issue Sep 2, 2024 · 1 comment

Comments

@cloudfinch-shivansh
Copy link

cloudfinch-shivansh commented Sep 2, 2024

System info


  • Operating System: Windows_NT
  • Node Version: v20.17.0
  • Nuxt Version: 3.13.0
  • CLI Version: 3.13.1
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools, modules, ssr
  • Runtime Modules: @vueuse/[email protected], @vueuse/motion/[email protected]
  • Build Modules: -


Reproduction

https://github.com/cloudfinch-shivansh/vueuse-motion-err

Describe the bug

I am using constants from the utils folder, which are auto-imported directly in the template. However, I am receiving the following TypeScript error:

Property 'constant' does not exist on type 'CreateComponentPublicInstance<Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., {}>'.

Despite this error, the code is working fine in the browser.

The issue occurs when I install @vueuse/motion.

On uninstalling @vueuse/motion, the TypeScript error is resolved.

image

Additional context

No response

Logs

No response

@luigigorlero
Copy link

This might be related to the way the module is defined. It may be necessary to
augment vue instead of @vue/runtime-core

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

No branches or pull requests

2 participants