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

Import error using with reactivue. #21

Closed
Dav3rs opened this issue Nov 23, 2020 · 4 comments
Closed

Import error using with reactivue. #21

Dav3rs opened this issue Nov 23, 2020 · 4 comments

Comments

@Dav3rs
Copy link

Dav3rs commented Nov 23, 2020

I'm trying to use vueuse with reactivue and I'm getting this error:

imagen

@antfu
Copy link
Member

antfu commented Nov 24, 2020

vue-demi default to use Vue 2 if no Vue is presented. Can you try to install vue@3 in your dev dependencies to see if it resolves your problem. Maybe it's better to let it default to Vue 3.

@antfu antfu transferred this issue from vueuse/vueuse Nov 24, 2020
@Dav3rs
Copy link
Author

Dav3rs commented Nov 24, 2020

With Vue3 that part of the compilation seems to continue fine, but then the code starts to break in places that previously compiled without problem. If I fill the file with //@ ts-ignore it compiles ok, but then one file after another gets broken types too, files that have nothing to do with it.

imagen

imagen

Just by removing the import from @vueuse/core everything compiles without type problems, I'm sure this doesn't happen in plain javascript, it's something with typescript that goes crazy in the whole project.

I will try later to test this in a clean proyect.

@antfu
Copy link
Member

antfu commented Jul 15, 2021

Is that still a case?

@antfu
Copy link
Member

antfu commented Jul 15, 2021

Close for now. Feel free to reopen with a proper reproduction if it still occurs.

@antfu antfu closed this as completed Jul 15, 2021
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