DamianOsipiuk / vue-query

Hooks for fetching, caching and updating asynchronous data in Vue
https://vue-query.vercel.app/
MIT License
1.11k stars 48 forks source link

[Bug Report] 'Error: Dynamic require of "vue-demi" is not supported' when trying to add VueQueryDevTools to vue3 #127

Closed park-brown closed 2 years ago

park-brown commented 2 years ago

when trying to add VueQueryDevTools to the vue3 project, console report error [ Dynamic require of "vue-demi" is not supported]

DamianOsipiuk commented 2 years ago

@userProfileIsAvailable Would you be able to provide a minimal reproduction repo so i could take a look at it?

What you could try is to make sure to import { VueQueryDevTools } from "vue-query/devtools"; when using script setup

park-brown commented 2 years ago

@DamianOsipiuk repo-link: https://github.com/userProfileIsAvailable/vitesse-lite-sass bug reproduction: -run pnpm i -npm run dev

DamianOsipiuk commented 2 years ago

I have checked it and was unable to reproduce the issue.

Could you try to remove node_modules and reinstall packages? Also try running npx vue-demi-fix

park-brown commented 2 years ago

thanks for your help , after switching vite version to 2.6.14, the issue didn't show up