-
I'm creating React app, and got stuck with Date Range Picker solution:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I had this same issue a couple of days ago. In my case, I autocompleted an import of
not
I hope that helps. Edit. I think the issue is an |
Beta Was this translation helpful? Give feedback.
I had this same issue a couple of days ago. In my case, I autocompleted an import of
<Button />
in my code editor which referenced "react-day-picker" instead of "@/components/ui/button" when I was building a component. It gave me the same error you're having. Simple fix.import { Button } from "@/components/ui/button"
not
import { Button } from "react-day-picker"
I hope that helps.
Edit. I think the issue is an
<Button />
import somewhere else in your code, not this specific component.