You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS C:\Users\HP\Desktop\office\package-maker> npx shadcn@latest add toast
Need to install the following packages: [email protected]
Ok to proceed? (y) y
✔ Checking registry.
✔ Installing dependencies.
✔ Created 3 files:
components\ui\toast.tsx
hooks\use-toast.ts
components\ui\toaster.tsx
Failed to compile
Next.js (14.2.5) out of date (learn more)
./components/ui/toaster.tsx:3:1
Module not found: Can't resolve '@/components/hooks/use-toast'
1 | "use client"
2 |
Describe the bug
PS C:\Users\HP\Desktop\office\package-maker> npx shadcn@latest add toast
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
✔ Checking registry.
✔ Installing dependencies.
✔ Created 3 files:
Failed to compile
Next.js (14.2.5) out of date (learn more)
./components/ui/toaster.tsx:3:1
Module not found: Can't resolve '@/components/hooks/use-toast'
1 | "use client"
2 |
https://nextjs.org/docs/messages/module-not-found
Affected component/components
Toast
How to reproduce
Codesandbox/StackBlitz link
yes
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: