Cannot stringify arbitrary non-POJOs GraphModel Warning
See original GitHub issueKeep 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?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:16 (1 by maintainers)
Top Results From Across the Web
WARN: Cannot stringify arbitrary non-POJOs #255 - GitHub
Hi, I installed and run vuex-orm/vuex-orm-examples-nuxt and I got warnings on terminal for every page refresh: WARN Cannot stringify ...
Read more >`Cannot stringify arbitrary non-POJOs` and `Invalid prop
About the non POJO's warning: I solved the problem converting the class object to a POJO's at toJSON() function (which is the function ......
Read more >Problems loading data with svelteKit +page.server.js - Reddit
Data returned from `load` while rendering /pb is not serializable: Cannot stringify arbitrary non-POJOs (data.posts[0]).
Read more >nuxt请求提示WARN Cannot stringify a function ... - CSDN博客
WARN Cannot stringify a function validateStatus 16:46:55. WARN Cannot stringify arbitrary non-POJOs ClientRequest. 在这里插入图片描述 ...
Read more >JSON.stringify() - JavaScript - MDN Web Docs
The JSON.stringify() method converts a JavaScript value to a JSON string, optionally replacing values if a replacer function is specified or ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.