nuxt-shopify icon indicating copy to clipboard operation
nuxt-shopify copied to clipboard

Cannot stringify arbitrary non-POJOs GraphModel Warning

Open lechim opened this issue 4 years ago • 16 comments

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?

lechim avatar Feb 26 '20 19:02 lechim

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

Gomah avatar Feb 27 '20 03:02 Gomah

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

doomb0t avatar Apr 08 '20 19:04 doomb0t

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

ideacco avatar May 02 '20 17:05 ideacco

+1

juanpprieto avatar Feb 10 '21 08:02 juanpprieto

Interested in a fix as well, following this issue!

sstottelaar avatar Mar 09 '21 13:03 sstottelaar

i am also having this problem

binoysarker avatar Mar 11 '21 09:03 binoysarker

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

adamdehaven avatar Mar 16 '21 19:03 adamdehaven

Any updates on this? Thank you!

rcobiella avatar May 13 '21 13:05 rcobiella

+1

sdevogel avatar Jun 10 '21 13:06 sdevogel

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

SantosJMM avatar Jun 13 '21 00:06 SantosJMM

+1

riccardolardi avatar Jul 18 '21 18:07 riccardolardi

Yep, I am still experiencing the same issue

josefarrugia avatar Oct 26 '21 14:10 josefarrugia

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?

josefarrugia avatar Oct 27 '21 08:10 josefarrugia

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

Asingerdev avatar Nov 17 '21 23:11 Asingerdev

Any news?

dougwl avatar Dec 20 '21 18:12 dougwl

Having this problem too. Using nuxt3 with useAsyncData.

fmoessle avatar Feb 26 '22 13:02 fmoessle