Comments (14)
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.
I had the same error - updated all packages in npm, ran an audit fix, and now i'm receiving two GraphQL errors
from gatsby-starter-ecommerce.
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.
from gatsby-starter-ecommerce.
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.
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.
Please, how do you solve it. I have the same issue
from gatsby-starter-ecommerce.
I get same error
Unknown field 'allMoltinProduct' on type 'Query'. Source: document IndexQuery file: `GraphQL request
from gatsby-starter-ecommerce.
Same here.
I can't execute this project.
how can we see it?
from gatsby-starter-ecommerce.
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.
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.
I have updated the project and this issue should be fixed.
from gatsby-starter-ecommerce.
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?
If I remove that query, I just get another similar error to do with 'material' being undefined.
from gatsby-starter-ecommerce.
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.
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)
- TypeError: Cannot read property 'allMoltinProduct' of undefined HOT 7
- Stripe Payment Gateway Stuck in Test Mode HOT 2
- Add To Cart fails with 400: Bad Request HOT 2
- Unknown field 'background' on type 'Query'. Source: document `IndexQuery` file: `GraphQL request` HOT 1
- Customer Sign In HOT 3
- Stripe react elements HOT 2
- Duplicated documents error HOT 3
- Demo not working
- Current demo doesn't build - missing image HOT 2
- Install fails due to Cypress checksum mismatch HOT 2
- Making it work with Commerce API? from Drupal Commerce - Help Request HOT 1
- Add copyright notice to license HOT 3
- Moltin E-Commerce API HOT 3
- Netlify template from repo does not build HOT 2
- npm ERR! code E401 npm ERR! Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager" HOT 10
- Hello There! I am Completely new to JAMstack HOT 1
- Fresh project is not compiling HOT 2
- Unable to update dependencies HOT 1
- Is it possible not to use commercial APIsοΌ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-starter-ecommerce.