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

[bug] useScroll is conflict with vueuse if auto import is enable in Nuxt3 #33

Closed
svenit opened this issue Jan 11, 2025 · 2 comments
Closed

Comments

@svenit
Copy link

svenit commented Jan 11, 2025

No description provided.

@rick-hup
Copy link
Collaborator

hi! @svenit can you Provide a CodeSandbox reproduction of this?

@renardsas
Copy link

Hi,
If you install motion-v and vueuse, both have a useScroll function.

Vueuse UseScroll

Reproduction:
https://stackblitz.com/edit/nuxt-starter-lqqhcfqn?file=pages%2Fscroll-vueuse.vue

In this example, useScroll will be the one from motion-v.
To use the one from vueuse, you need to explicitly import it.

I use both libraries, and when I want to use useScroll from either one, I simply import it explicitly.

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

3 participants