-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Pinia 2.1.0 + Vue 2.7.14: Error "VueCompositionAPI is not defined" in hasInjectionContext() #2208
Comments
Same issue. |
Update Pinia to v2.1.0,Vue version is v2.7.14 |
I overlooked iife when adding the feature to vue-demi. I opened a PR to fix it vueuse/vue-demi#225 |
A fix was released in vue-demi 💯 |
Unfortunately after spending hours on it I also had to rollback to 2.0.36 to fix the same problem in my project. For Pinia 2.1.1 with Vue 2.7.14 bug still appear. |
I can confirm, that the error still exists in pinia 2.1.1 / vue-demi 0.14.3. I opened a new issue in the vue-demi repository with updated example code: |
After vueuse/vue-demi#229, all possible versions should be properly covered 😅 |
Reproduction
https://jsfiddle.net/egay83mp/4/
Steps to reproduce the bug
Use Pinia 2.1 with Vue 2.7.14
Expected behavior
no exception is thrown
Actual behavior
An exception is thrown when using a defined store:
Additional information
Opened issue in vue-demi:
vueuse/vue-demi#224
JSFiddle with Pinia 2.0 (working):
https://jsfiddle.net/mk56hoqe/2/
JSFiddle with Pinia 2.1 (broken):
https://jsfiddle.net/egay83mp/4/
The text was updated successfully, but these errors were encountered: