Incorrect Default Import Path in "ui/toaster.tsx" #5406
bastianbeckeru
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I found a small error in the default import at
ui/toaster.tsx. It imports theuseToasthook as:import { useToast } from "@/components/hooks/use-toast";However, the default installation using
npx shadcn@latest add toastcreates the hook at:/src/hooks/use-toast.tsSo, the correct import path in toaster.tsx should be:
import { useToast } from "@/hooks/use-toast";I was going to open an issue, but I'm not sure if I should consider it a bug; it's just a typo.
It's not a major issue, but it can be a bit annoying.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions