Hey there,
Yeah, I’ve been playing with this all day today. Got the same error, not defined.
I’ve ended up creating an app by passing the API_KEY and shopOrigin on _app.js
const app = createApp({
apiKey: API_KEY,
shopOrigin: shopOrigin
});
I have both of those vars defined in _app.js. Looks like a hack but it’s the only way I got it to work.
The docs are a bit confusing to me.