Shopify / discount-app-components

A library of discounts-focused React components to help in building Shopify apps.
https://www.npmjs.com/package/@shopify/discount-app-components
MIT License
72 stars 23 forks source link

🐛[Bug] No matching export in "node_modules/@shopify/discount-app-components/build/esm/index.js" for import "onBreadcrumbAction" #218

Open mangege opened 1 month ago

mangege commented 1 month ago

Issue summary

https://shopify.dev/docs/apps/build/discounts/discount-function-examples/order-minimum-subtotal https://github.com/Shopify/function-examples/tree/order-discount-example/sample-apps/discounts/extensions

The Order Discount sample code is automatically upgraded to discount-app-components to 3.0, and an error is reported

10:14:45 │               remix │     app/routes/app.minimum-subtotal.$functionId.$id.jsx:29:149:
10:14:45 │               remix │       29 │ ...Card, UsageLimitsCard, onBreadcrumbAction } from "@shopify/disc...
10:14:45 │               remix │          ╵                           ~~~~~~~~~~~~~~~~~~
frknue commented 3 weeks ago

It seems like they just removed it...

But this will help:

https://shopify.dev/docs/api/app-bridge/previous-versions/actions/navigation/redirect-navigate#redirect-to-a-specific-resource-in-shopify-admin