nuxt-shopify: Cannot stringify arbitrary non-POJOs GraphModel Warning
Keep getting Cannot stringify arbitrary non-POJOs GraphModel warning
In store/index.js
async nuxtServerInit({commit, dispatch}, context) {
if (process.server) {
try{
const products = await context.app.$shopify.product.fetchAll();
commit('products/setProducts', products)
}catch (e) {
console.log('products err: ',e)
}
}
}
I get same error in asyncData.
Is there something I am missing?
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 1
- Comments: 16 (1 by maintainers)
Howdy I am open to taking a stab at this as I am also having this issue on a side project I am working on. The plan is to leverage nuxt-shopify and vuetify to provide an open source store front that can be hosted on github/lab pages so folks only have to pay for the storefront api access.
Anyhow, I will start on this asap
Correct, Nuxt uses devalue to stringify Shopify’s GraphModel and it’s failing.