Closed soufianeh closed 2 years ago
Similar issue, not sure how best to debug these queries.
Hey there, thanks for opening the issue :)
This error means the app does not know what adminShop is defined as. This can happen for a few reasons, all easy to fix.
shopify app serve
. It should look something like: ⭑ To install and start using your app, open this URL in your browser: https://d52a-86-40-45-68.ngrok.io/auth?shop=test-dev-1.myshopify.com
The SHOP in the .env file does not match the dev store you are currently logged into via the CLI
Solve by running Shopify CLI commandshopify whoami
and make sure it matches the SHOP variable in your .env file.
The link is incorrect. Solve by navigating to the app within the Shopify admin of the dev store.
Hey there, thanks for opening the issue :)
This error means the app does not know what adminShop is defined as. This can happen for a few reasons, all easy to fix.
- The app is not installed on the dev store Solve by clicking on the link generate by the CLI when you run
shopify app serve
. It should look something like:⭑ To install and start using your app, open this URL in your browser: https://d52a-86-40-45-68.ngrok.io/auth?shop=test-dev-1.myshopify.com
- The SHOP in the .env file does not match the dev store you are currently logged into via the CLI Solve by running Shopify CLI command
shopify whoami
and make sure it matches the SHOP variable in your .env file.- The link is incorrect. Solve by navigating to the app within the Shopify admin of the dev store.
I'm having the same issue and tried all these, but despite them all being correct, the issue persists.
Following the documentation here: https://shopify.dev/marketplaces/getting-started/get-started-with-shopify-marketplace-kit, I get to the end of the tutorial, after trying to access my app: https://{SHOPIFY_STORE}.myshopify.com/admin/apps/{APP_ID}/, I get this:
It seems to be related to this query: