Closed ChanryLimmy closed 1 year ago
dont forgot to add the <Toaster />
component to your root file.
import { Toaster } from "@/components/ui/toaster"
<Toaster />
oh! fine. i forgot it, thx bro!
Currently, shadcn Toast component is called "Toast" no longer "Toaster". Also adding the Toast component alone is not enough. It now needs to be wrapped within a
I have the same issue as you @Chipzstar
Turns out there is a Toaster component (apologies). If you delete the existing toast / use-toast components and then reinstall with the CLI, the toaster component should get added.
I create a totally new page in Nextjs project with the demo toast code.
run project and then visit
http://localhost:3000/test
, a white button on the left-top. Click it, console shows "clicked", and nothing happens then.For more info i can provide, list my dependencies blow: