alexislepresle / gatsby-shopify-theme Goto Github PK
View Code? Open in Web Editor NEW๐ Simple theme to build a blazing simple and fast store with Gatsby and Shopify.
Home Page: https://gatsby-shopify-store.netlify.com/
License: MIT License
๐ Simple theme to build a blazing simple and fast store with Gatsby and Shopify.
Home Page: https://gatsby-shopify-store.netlify.com/
License: MIT License
Hi @alexislepresle ,
I got this error on the homepage with my dev store credentials.
Fetch API cannot load webpack-internal:///./src/components/ProductList/productBox.js. URL scheme must be "http" or "https" for CORS request.
Do you what is causing this ?
Thanks
Hi Alexis,
Hope you are doing well during this pandemic. I have been playing around with your theme/starter and I find it a joy to work with. Everything is perfect with the exception of one issue: Google Page Speed results
It seems like somewhere something is sending a doubled request and the JS bundle is unusually large. I have tried to remove things and analyzed with webpack bundle analyzer over the past month and a half but could not find the issue.
I thought asking you would be a good last resort.
@alexislepresle I'm probably just doing something silly but what does your netlify.toml
look like?
When trying to deploy I get this error undefined.myshopify.com/api/2019-07/graphql:1
from the store hook. I clearly just haven't set up my env variables correctly in netlify but I'm uncertain what the best way to go about it is.
Any help would be appreciated!
Create the app and install dependencies.
gatsby new gatsby-shopify-theme https://github.com/alexislepresle/gatsby-shopify-theme
npm install
gatsby develop
Run into graphql error. Using node v14.15.4. Any clue on how to fix this?
Missing onError handler for invocation 'building-schema', error was 'Error: Cannot create as TypeComposer the following value: Date.'. Stacktrace was 'Error: Cannot create as TypeComposer the following
value: Date.
at SchemaComposer.createTempTC (/Users/tony/Desktop/gatsby-shopify-theme/node_modules/graphql-compose/lib/SchemaComposer.js:365:11)
at SchemaComposer.addAsComposer (/Users/tony/Desktop/gatsby-shopify-theme/node_modules/graphql-compose/lib/SchemaComposer.js:563:27)
at createSchemaComposer (/Users/tony/Desktop/gatsby-shopify-theme/node_modules/gatsby/src/schema/schema-composer.js:16:18)
at build (/Users/tony/Desktop/gatsby-shopify-theme/node_modules/gatsby/src/schema/index.js:104:26)
at buildSchema (/Users/tony/Desktop/gatsby-shopify-theme/node_modules/gatsby/src/services/build-schema.ts:19:3)'
I have cloned and updated the .env
variables, but I'm getting a CORS error
The same issue that I've faced using the CURL API, I believe I need to add something to my Shopify backend, could you please guide me on how to do that. it would be really appreciated.
Also, isn't it a security venerability to provide the Access token
in the header of the call? and is there a better solution?
Thanks in advance.
I love the work you guys are doing! I ran into an error just trying to get the index page to compile when I cloned your repo down.
Component names need to be capitalized in React, or they won't work I did a little digging and you just need to change these two lines:
const productList = ({data}) => {
and
export default productList;
Should be
const ProductList = ({data}) => {
export default ProductList;
Permalinks to those lines.
I can put in a PR if you'd like or you guys can handle it. /shrug
Hi @alexislepresle,
Is it possible to add a product that to the cart that has no variation(Options) set in Shopify?
Products with variants are adding to the cart without any issues.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.