Skip to content
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

Cannot stringify arbitrary non-POJOs GraphModel Warning #182

Open
lechim opened this issue Feb 26, 2020 · 16 comments
Open

Cannot stringify arbitrary non-POJOs GraphModel Warning #182

lechim opened this issue Feb 26, 2020 · 16 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@lechim
Copy link

lechim commented Feb 26, 2020

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?

@Gomah
Copy link
Owner

Gomah commented Feb 27, 2020

Correct, Nuxt uses devalue to stringify Shopify's GraphModel and it's failing.

@Gomah Gomah added good first issue Good for newcomers help wanted Extra attention is needed labels Feb 27, 2020
@doomb0t
Copy link

doomb0t commented Apr 8, 2020

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

@ideacco
Copy link

ideacco commented May 2, 2020

I also encountered the same problem and hope to fix it soon. Thank you

@juanpprieto
Copy link

+1

@sstottelaar
Copy link

Interested in a fix as well, following this issue!

@binoysarker
Copy link

i am also having this problem

@adamdehaven
Copy link

@Gomah it looks like another project resolved this already; I'm guessing you could do something similar. Here's the link for their PR

@rcobiella
Copy link

Any updates on this? Thank you!

@sdevogel
Copy link

+1

@SantosJMM
Copy link

I have the same, I hope they can solve it soon, thank you very much

@riccardolardi
Copy link

+1

@josefarrugia
Copy link

Yep, I am still experiencing the same issue

@josefarrugia
Copy link

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

Were you able to come up with a fix?

@Asingerdev
Copy link

Any update on this? Starting a new site and was looking to use this package

@dougwl
Copy link

dougwl commented Dec 20, 2021

Any news?

@fmoessle
Copy link

Having this problem too. Using nuxt3 with useAsyncData.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests