"Provider" is not exported by app-bridge-react 4.0

Just update the npm package for app-bridge-react from v3.x to v4.0 and the app can not compile with the error

RollupError: “Provider” is not exported by “node_modules/@shopify/app-bridge-react/dist/index.js”, imported by “app/javascript/components/Component.jsx”.

Is any breaking change in App Bridge and AppBridge react and where is changelog?

Hey @lokki54

Version 4 removes the need of a Provider. Here’s the migration guide: https://shopify.dev/docs/api/app-bridge/migration-guide

Hey,

I’m getting error as below:
Uncaught (in promise) TypeError: appBridge.subscribe is not a function

Do you have any idea why this error occurring?

same error

Hello, I am new to Shopify app development. I am too stuck here with this error. Did you find a solution?

hey, my project dont use remix, just react & php. I’m transform NavigationMenu to NavMenu but it’s dont show up in the nav on the left, can you give me more example about how to use this NavMenu . thanks