Git Product home page Git Product logo

Comments (6)

brxck avatar brxck commented on June 22, 2024 1

In my experience this means gatsby-source-stripe wasn't able to create any Sku nodes, so there's nothing to query. Have you created skus in your Stripe account?

from gatsby-starter-stripe.

brettbartylla avatar brettbartylla commented on June 22, 2024

I have created one product with three skus:
Screen Shot 2019-05-05 at 3 09 02 PM

from gatsby-starter-stripe.

stcalica avatar stcalica commented on June 22, 2024

Slowly chipping away at this.

First, I had an issue with not recognizing images.
So you need to include images in the overall products and information there and then add that image to the SKUs, for some reason placing a URL does not work there.

Now I have this issue:

Screen Shot 2019-08-08 at 4 03 34 PM

However, I added a price to my SKUs.

I think the issue is we need more documentation on how to set this up in Stripe so the queries work. Secondly, maybe making the queries more grateful for those who don't have all the requirements for some reason?

from gatsby-starter-stripe.

brxck avatar brxck commented on June 22, 2024

@stcalica the issue in the image you provided is that the result of sku[id] is undefined, not that price is undefined. I don't have enough info to say why that is.

Secondly, maybe making the queries more grateful for those who don't have all the requirements for some reason?

As far as this goes, the graphQL queries are pretty all or nothing. They will throw an error if the field does not exist, and I don't know of a way around that.

from gatsby-starter-stripe.

stcalica avatar stcalica commented on June 22, 2024

@brxck yeah GatsbyJS is my first run in with GraphQL. So are you saying GraphQL doesn't state what's missing? Just a fail or not?
That's really annoying for a project like this.
Then again I need to run my own checks, but was just trying to use this right of the box.

from gatsby-starter-stripe.

brxck avatar brxck commented on June 22, 2024

I believe any issues should be fixed by the new gatsby-source-stripe version, and required fields are now clarified in the README thanks to #12.

from gatsby-starter-stripe.

Related Issues (19)

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.