Coder Social home page Coder Social logo

Comments (14)

Jeerjmin avatar Jeerjmin commented on August 25, 2024 3

I get same error

Unknown field 'allMoltinProduct' on type 'Query'. Source: document IndexQuery file: `GraphQL request

It is starter or not ?

from gatsby-starter-ecommerce.

IsaacCDHall avatar IsaacCDHall commented on August 25, 2024 3

I had the same error - updated all packages in npm, ran an audit fix, and now i'm receiving two GraphQL errors

Screen Shot 2019-07-24 at 2 16 44 PM

from gatsby-starter-ecommerce.

elijah-io avatar elijah-io commented on August 25, 2024 2

Would the Token ID field go into .env.development? I am also getting this error.

Edit: I ask because I added the Stripe and Moltin API information, but get a similar, but slightly different error even after doing that.

Screen Shot 2019-07-11 at 11 32 46 AM

from gatsby-starter-ecommerce.

parmsang avatar parmsang commented on August 25, 2024 2

Thanks for the kind words @elijah-io ,

That's very likely because no background colour property is set for your products in your personal Moltin store, unlike the lamp store used for this starter. I suggest reviewing the response you get back using graphiql and using that response as the foundation to build your e-commerce site. As a quick fix you can simply delete the few references to background_colour (and other unused properties such as material etc) in the code.

Alternatively, you can set these properties (background colour. material etc) for your personal products via the Moltin site.

from gatsby-starter-ecommerce.

jacintocapote avatar jacintocapote commented on August 25, 2024

Looks like I need add a token id should be good to add to documentation this step is before launch the server.

from gatsby-starter-ecommerce.

devconxol avatar devconxol commented on August 25, 2024

Please, how do you solve it. I have the same issue

from gatsby-starter-ecommerce.

daljeetvirdi avatar daljeetvirdi commented on August 25, 2024

I get same error

Unknown field 'allMoltinProduct' on type 'Query'. Source: document IndexQuery file: `GraphQL request

from gatsby-starter-ecommerce.

FelixFreelancer avatar FelixFreelancer commented on August 25, 2024

Same here.
I can't execute this project.
how can we see it?

from gatsby-starter-ecommerce.

parmsang avatar parmsang commented on August 25, 2024

Hi guys - I've been on a long break but hopefully plan to fix outstanding issues this weekend. Apologises for not responding sooner.

Note that the main issue appears to be that Moltin, who provide the backend api and the content for the demo lamp store, have revised this content and the structure of the content returned. I will need to update the code to adapt to these recent, and I have to say, unexpected changes.

from gatsby-starter-ecommerce.

elijah-io avatar elijah-io commented on August 25, 2024

Interesting, @parmsang – thank you so much for the update. I'm interested to see what those Moltin changes were. And no worries about the "long break," as you're certainly allowed those, especially since we're benefiting from your generous work!

from gatsby-starter-ecommerce.

parmsang avatar parmsang commented on August 25, 2024

I have updated the project and this issue should be fixed.

from gatsby-starter-ecommerce.

elijah-io avatar elijah-io commented on August 25, 2024

Thanks so much, @parmsang – fresh install works well now, so I recommend closing this issue.

I did run into another issue that I assume has to do with how my moltin test product is configured; do you know what this might be?

Screen Shot 2019-08-31 at 11 07 18 AM

If I remove that query, I just get another similar error to do with 'material' being undefined.

from gatsby-starter-ecommerce.

elijah-io avatar elijah-io commented on August 25, 2024

Thanks so much for pointing me in the right direction, for fixing the issue, and above all, for building this project. You rock!

from gatsby-starter-ecommerce.

marksteven avatar marksteven commented on August 25, 2024

Sept 2020
Same issue
Any ideas on what causes this?

GraphQL Error Encountered 2 error(s):

  • Unknown field 'mainImageHref' on type 'MoltinProduct!'. Source: document IndexQuery file: GraphQL request

    GraphQL request:14:13
    13 | description
    14 | mainImageHref
    | ^
    15 | meta {

  • Unknown field 'mainImageHref' on type 'MoltinProduct!'.

    file: /Users/mark/Documents/sites/gatsby-starter-ecommerce/src/templates/ProductPage.js
    

from gatsby-starter-ecommerce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.