+
Skip to content

Conversation

UjjwalSharma0112
Copy link

@UjjwalSharma0112 UjjwalSharma0112 commented Oct 7, 2025

Fix: Use type-only import for ToasterProps

This PR changes the import of ToasterProps in apps/v4/registry/new-york-v4/ui/sonner.tsx

The error I was getting

sonner.tsx:2 Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/sonner.js?v=8cb40f71' does not provide an export named 'ToasterProps' (at sonner.tsx:2:29)

Fixed it by changing
import { Toaster as Sonner, ToasterProps } from "sonner";
To
import { Toaster as Sonner, type ToasterProps } from "sonner";

Type: fix

Copy link

vercel bot commented Oct 7, 2025

@UjjwalSharma0112 is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载