You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Being able to configure and use @vue/apollo-composable to send graphql mutations and queries
Actual Behavior
When configuring and trying to use @vue/apollo-composable, the front is somehow crashing and logging errors :
[Vue warn]: Property "__ob__" must be accessed with "$data.__ob__" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals. See: https://vuejs.org/v2/api/#data
found in
---> <SfSearchBar> at node_modules/@storefront-ui/vue/src/components/molecules/SfSearchBar/SfSearchBar.vue
<SfHeader> at node_modules/@storefront-ui/vue/src/components/organisms/SfHeader/SfHeader.vue
<AppHeader> at components/AppHeader.vue
<Anonymous>
<LazyHydrate>
<DefaultLayout> at layouts/default.vue
<Root>
[Vue warn]: You may have an infinite update loop in a component render function.
found in
---> <SfHeader> at node_modules/@storefront-ui/vue/src/components/organisms/SfHeader/SfHeader.vue
<AppHeader> at components/AppHeader.vue
<Anonymous>
<LazyHydrate>
<DefaultLayout> at layouts/default.vue
<Root>
Possible Solution
Could be a conflict caused by the peer dependency on @vue/composition-api, see nuxt-modules/apollo#288
Thanks for rising that issue. I dont think however that it is caused by the integration itself. You are using a nuxt module in a nuxt based project. The fact that it is triggered in the Storefront UI component means only that it is a first component on a page (not that it is caused by Vue Storefront or Storefront UI)
Not sure, but Vue apollo composable can be meant for the Vue 3 only, while VSF is a Nuxt 2 (Vue 2 in the end).
Expected Behavior
Being able to configure and use @vue/apollo-composable to send graphql mutations and queries
Actual Behavior
When configuring and trying to use @vue/apollo-composable, the front is somehow crashing and logging errors :
Possible Solution
Could be a conflict caused by the peer dependency on @vue/composition-api, see nuxt-modules/apollo#288
Steps to reproduce
Init a new VSF project. Add apollo :
yarn add @nuxtjs/apollo @vue/apollo-composable
In
nuxt.config.js
add :The alias section is fixing vueuse/vue-demi#106
In
/plugins/provide-apollo-client.ts
add :This configuration is the one making nuxt working with apollo-composable according to nuxt-modules/apollo#288
Launch the front, go on a page, and see errors logging
What version of vendure integration are you using?
1.2.0
What version of Node.js are you using?
v16.15.0
What browser (and version) are you using?
Chrome 103.0.5060.114 (arm64)
What operating system (and version) are you using?
macOS Monterey 12.2.1
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: