GatsbyStorefront / gatsby-theme-storefront-shopify

Create a Shopify store with Gatsby JS 🛍️ 🛒

Home Page:https://gatsbystorefront.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trying to create a new custom page

danimontanaro opened this issue · comments

What happened:

I am trying to create a custom page for my E-commerce. To do that, I created the/pages folder and inside that the Thanks.jsx file to define the page component (like making "shadowing" of the pages folder but I am not sure that this is "shadowing"). However, when I run the project, the page doesn't exist and it shows me this error in the console:

image

Reproduction:

You can check our code here:
https://github.com/davidpaley/gatsby-ecommerce/pull/4/files

This is the PR for the change in our public repo.

If there is any workaround, please let me know.

commented

Hi @danimontanaro,
If you just want to add a page to your store, there is no need to use shadowing and make changes in the theme.
Just create /src/pages folder and place your thanks.js file there.