Toast import issue

Unable to use toast, done everything as per documentation(import { Button, Image, toast } from ‘@shopify/shop-minis-react’), but still showing the following error:

@shopify/shop-minis-react”’ has no exported member named ‘toast’. Did you mean ‘Toaster’?

SyntaxError: The requested module ‘/node_modules/.vite/deps/@shopify_shop-minis-react.js?v=e273d5c7’ does not provide an export named ‘toast’ (at CustomCard.tsx:2:25)

“Toast” is not available in the library even though it shows in the document. I am using custom toast in my app. The only one available is useErrorToast.

@Sougata_Chattapadhya running npx shop-minis upgrade should solve it. The SDK indeed exposes a Toaster component and a toast method, see docs

@Sougata_Chattapadhya i can confirm the Toast now works after upgrade as mentioned by @Ferran-Shopify

yes…. working…… thanks😊 @mehdi7 @Ferran-Shopify