I follow the shopify dev tutorial to bulid a shopify app with node and react as below URL:
After i add the shopify app bridge for server.js & _apps.js, and try to access the apps in the development store.
The app can be show properly. However, when i click the “navigation” button. the page will be shown error below.
Unhandled Runtime Error
AppBridgeError: APP::ERROR::INVALID_CONFIG: shopOrigin must be provided
Is anyone know the reason of this? i have search the shopify community for similar case but look like the similar problem is not using same component. Thanks.
It looks like @Shopify_77 /app-bridge-react v2.0.0 has different parameters that it accepts, namely the ‘host’ parameter which is not provided in the aforementioned walkthrough. I rolled back to v1.24.0 and everything worked fine.
Thanks so much for this response. Saved me time as I could not get the tutorial working for the life of me, but downgrading the app-bridge-react to <v2.0.0 worked!
in your code and also embed host in server.js file like you can do for shop. You can also search about the latest changes about appBridge
or If you can’t able to resolve this error then run this query on your terminal to change app-bridge-react version (npm install @Shopify_77 [email removed]
May be this is helpful for both of you and other peoples who face this issue