New fresh shopify app is not showing boilerplate information.

New fresh shopify app is not showing boilerplate information.

mrkarim
Shopify Partner
19 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
825 71 155

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

Rajat | Shopify Expert Developer
Need a reliable Shopify developer for your next project?
Our App: Productify Groups App
Email: rajat.shopify@gmail.com
Portfolio: https://rajatweb.dev
mrkarim
Shopify Partner
19 1 0

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