-
Notifications
You must be signed in to change notification settings - Fork 32
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
Error in setup: "Error: You must use this function within the "setup()" method, or insert the store as first argument." #71
Comments
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
|
Thanks for this, I managed to get it working by downgrading these packages
|
Good to know! Let's hope for some changes or feedback regarding vue 2.7 |
Hi! Thanks for this issue!
Probably will need to fix it on v1 version of the package. |
This uses `vue-demi` [0] to determine if the imports needs to be done from `vue` or the `@vue/composition-api` plugin. Closes greenpress#71. [0] https://github.com/vueuse/vue-demi
I opened a PR to support Vue 2.7 without breaking the compat with Vue 2.6 thanks to Vue-Demi, see #72 |
This uses `vue-demi` [0] to determine if the imports needs to be done from `vue` or the `@vue/composition-api` plugin. Closes greenpress#71. [0] https://github.com/vueuse/vue-demi
Vue < 2.7.0 is not supported anymore. Closes greenpress#71.
* TypeScript: 3.9.10 -> 4.7.4 Recent versions of @vue/composition-api needs a more recent version of TypeScript than 3.9.10. Otherwise TypeScript is confused by some new syntaxes. ts-jest has also been upgraded to a more recent version in order to support TypeScript 4.7.4. Since recent versions of ts-jest only support recent version of Jest, Jest has also been upgraded. * Add support of Vue 2.7 Vue < 2.7.0 is not supported anymore. Closes #71.
fixed at version |
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
The text was updated successfully, but these errors were encountered: