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

vue-demi 0.12.0 breaks @vueuse-core #113

Closed
fk1blow opened this issue Oct 28, 2021 · 3 comments
Closed

vue-demi 0.12.0 breaks @vueuse-core #113

fk1blow opened this issue Oct 28, 2021 · 3 comments

Comments

@fk1blow
Copy link

fk1blow commented Oct 28, 2021

Uncaught Error: [vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function

using:
"@vueuse/core": "^5.1.3"
"@vue/composition-api": "1.0.5"
"typescript": "4.2.4"

As a workaround, forcing a resolution to vue-demi@0.11.4 will do the trick, tho it will work only with yarn.

Maybe vueuse/core could change its dep declaration to a fixed version of vue-demi (instead of "@vueuse/core": " * " ) ?

@saranchonkau
Copy link

saranchonkau commented Oct 28, 2021

@fk1blow Try to use webpack alias for @vue/composition-api
image

It will work, because vue-demi uses the same file internally
063dc2c#diff-781086cee8b60b6a53af64f9aca30f211ea0f81ba82b2e31cc62d400e1a28e6aR2

@fk1blow
Copy link
Author

fk1blow commented Oct 28, 2021

Thanks @saranchonkau!

for the time being, we fixed it using yarn resolutions, but i still consider this to be a workaround that needs to be fixed.

@antfu
Copy link
Member

antfu commented Oct 28, 2021

#106

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