Open leotran20 opened 4 months ago
Hey @leotran20 facing the same issue, have you found any solution?
Hey @leotran20
facing the same issue, have you found any solution?
Yes I have, turned out the issue comes from new version of @shopify/app-bridge-react 4.0.0. You should have a look at migration guide to adapt with this version and to fix this issue: https://shopify.dev/docs/api/app-bridge/migration-guide
@shopify-admins I can do this migration, please assign to me
Issue summary
Write a short description of the issue here ↓
I've been trying to run the app but getting these error in console logs:
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@shopify_app-bridge-react.js?v=df4089db' does not provide an export named 'Toast' (at ProductsCard.jsx:3:10)
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@shopify_app-bridge-react.js?v=df4089db' does not provide an export named 'Provider' (at AppBridgeProvider.jsx:3:10)
My package.json file:
Thanks!
Steps to reproduce the problem
npm run dev
preview