Why is my new app not working correctly in production?

Topic summary

New Shopify app works in the development environment but fails in production. The app cannot open or exit the Shopify Admin iFrame for a period, leaving the interface stuck on loading.

When this happens, the browser console reports an error (only visible in the attached screenshot). The behavior suggests the app eventually opens after a delay, but often remains blocked inside the iFrame.

Context: this is an embedded Shopify app (runs within an iFrame in the Admin). The user is seeking guidance to diagnose the production-only issue.

Artifacts: a screenshot showing the console error is attached and central to understanding the failure.

Status: no replies or solutions yet; the problem is unresolved and help is requested.

Summarized with AI on December 30. AI used: gpt-5.

Hi, I am new to Shopify app development. My app is working fine in the Dev environment, but in production getting weird problems. The app is unable to open(basically exit the iframe) for some time and if the app does not open/exit then it’s loading and in the console showing the mentioned error.

Needs help very badly.

Thanks