How to fix an Uncaught TypeError in a react embedded app?

Hi I have developed a react embedded app in shopify But Its showing an error.
The error says that Uncaught TypeError: web_vitals_1.onLCP is not a function.

Can anyone suggests some solution about this ?

3 Likes

I’m having the same problem.

1 Like

I’ve narrowed it down to the 3.3.x branch of the @Shopify_77 /app-bridge package. Downgrading to 3.2.6 (latest 3.2.x), it works again.

Edit: made issue https://github.com/Shopify/shopify-app-bridge/issues/145