New fresh shopify app is not showing boilerplate information.

New fresh shopify app is not showing boilerplate information.

mrkarim
Shopify Partner
14 1 0

I have just created an app and run it using yarn run dev command and installed it in my store but I don't see additional pages. If I create any new page it does not show in the navbar. I always see the following page. I don't know why 401 unauthorized is appearing all time because I already cleared my cache from the browser and re-login.

 

shopifyError.png

 

 

Replies 2 (2)

rajweb
Shopify Partner
53 4 3

Hi Mrkarim,


For additional Page you need to add your page in app.tsx file

 

import { NavMenu } from "@shopify/app-bridge-react";
<NavMenu>
        <Link to="/app" rel="home">
          Home
        </Link>
        <Link to="/app/additional">Additional page</Link>
</NavMenu>

 


Also you need to make sure you create page eg: app.additional.tsx in your app file

Thanks

-Need a Shopify developer?
https://rajatweb.dev/
Email: [email protected], Skype:live:.cid.92925bc74f1f4d72
mrkarim
Shopify Partner
14 1 0

The issue was my computer time, due to time conflict my jwt token always was sending 401 error