Comments (6)
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.
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:
- Go to your Shopify partner dashboard
- Create a new development store
- Be sure to select "for testing" on the radio input, instead of "for client"
- Click "create with test products"
5 previously mentioned steps...
Hope this helps! :)
from astro-shopify.
@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.
The demo store provides products including images, so I don't think that's the problem here.
from astro-shopify.
@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.
@silveltman I just created a new store with sample data and everything works on my side.
I also used the Shopify Headless app to create public and private tokens as follow:
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
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 astro-shopify.