Skip to content

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

@cloudfinch-shivansh

Description

@cloudfinch-shivansh

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions