Giter VIP home page Giter VIP logo

Comments (6)

thomasKn avatar thomasKn commented on May 18, 2024

Hi @silveltman,

Thanks for the feedback!

I just updated the .env.example file to make it easier for everyone. The shopifyShop var should be your-store.myshopify.com.

I tried using yarn and everything works on my side.

Do you have products listed in your store? Shopify graphQL API returns null if no ressource is found.

from astro-shopify.

silveltman avatar silveltman commented on May 18, 2024

Thanks @thomasKn !

I tried npm and pnpn too, but get the same error. The hard thing is that the error gives very little info.

I do have product in my store. In fact, I just openend a development store with test products. So now I'm thinking about it, here some updated reproduction steps:

  1. Go to your Shopify partner dashboard
  2. Create a new development store
  3. Be sure to select "for testing" on the radio input, instead of "for client"
  4. Click "create with test products"
    5 previously mentioned steps...

Hope this helps! :)

from astro-shopify.

thomasKn avatar thomasKn commented on May 18, 2024

@silveltman Did you try adding images to your products?
I'm pretty sure the issue is related to Zod. The schema utility doesn't parse Shopify images as optional.
Let me know about the images but I'll make a PR to handle products with no image anyway.

from astro-shopify.

silveltman avatar silveltman commented on May 18, 2024

The demo store provides products including images, so I don't think that's the problem here.

from astro-shopify.

thomasKn avatar thomasKn commented on May 18, 2024

@silveltman do you mind sharing your Storefront API access scopes?
Also, do you use both Public and Private access tokens in your .env?

from astro-shopify.

thomasKn avatar thomasKn commented on May 18, 2024

@silveltman I just created a new store with sample data and everything works on my side.
image

I also used the Shopify Headless app to create public and private tokens as follow:
image

By default, the headless app uses all scopes and gives every permissions.

Have you tried the latest version of the main branch?

from astro-shopify.

Related Issues (6)

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.