Closed rafaelmagalhaes closed 1 year ago
Happening to me similarly:
As I see from the Vue 2.7 release blog post, the new version includes some backported features that make the use of @vue/composition-api
obsolete. Indeed, in said plugin there is a new warning that states that "With the release of Vue 2.7, which has Composition API built-in, you no longer need this plugin".
vuex-composition-helpers
uses @vue/composition-api.
. I've tried to use it with version ^2.0.0 (@next), but anyway I get this same error as @rafaelmagalhaes, probably because it is intended to work with vue 3 and not vue 2.7.
Happening to me similarly:
As I see from the Vue 2.7 release blog post, the new version includes some backported features that make the use of
@vue/composition-api
obsolete. Indeed, in said plugin there is a new warning that states that "With the release of Vue 2.7, which has Composition API built-in, you no longer need this plugin".
vuex-composition-helpers
uses@vue/composition-api.
. I've tried to use it with version ^2.0.0 (@next), but anyway I get this same error as @rafaelmagalhaes, probably because it is intended to work with vue 3 and not vue 2.7.
Thanks for this, I managed to get it working by downgrading these packages
"vue": "2.6.14",
"vue-template-compiler": "2.6.14",
"vue-server-renderer": "2.6.14"
Good to know! Let's hope for some changes or feedback regarding vue 2.7
Hi!
Thanks for this issue! I thing the problem with Vue 2.7 is this breaking change:
If you were previously using @vue/composition-api, update imports from it to vue instead.
Probably will need to fix it on v1 version of the package.
I opened a PR to support Vue 2.7 without breaking the compat with Vue 2.6 thanks to Vue-Demi, see #72
fixed at version 1.2.0
. notice that 1.1.1
supports vue up to 2.6.x
I started a new nuxt project form scratch added
nuxt-composition-api
andvuex-composition-helpers
packageI get this error Error in setup: "Error: You must use this function within the "setup()" method, or insert the store as first argument." when trying to access store