I have created a react app for shopify admin and want to use shopify’s style system. For that I have installed the latest versions of “@shopify/polaris” and " @Shopify_77 /app-bridge-react" and followed the steps provided for setup. The polaris library is working fine but app-bridge is giving me problems.
But when I import and use anything from @Shopify_77 /app-bridge-react it doesn’t work and gives me this error:
Uncaught Error: App Bridge Next: missing required configuration fields: shop
at app-bridge.js:1:44135
at app-bridge.js:1:44212
at app-bridge.js:1:44242
at app-bridge.js:1:53002
at app-bridge.js:1:60155
This worked! Thank you so much! Spent full day and 50+ tries to get the app bridge working. Whatever the app bridge next is there is no documentation online besides couple sentences. Did not help that I had not configured correct domain in my shopify.app.toml nad it kept resetting the urls input through app settings in partner dashboard.