shadcn-ui / taxonomy

An open source application built using the new router, server components and everything new in Next.js 13.
https://tx.shadcn.com
MIT License
18.22k stars 2.54k forks source link

'"lucide-react"' has no exported member named 'Icon'. Did you mean 'XIcon'? #209

Open tungrix opened 11 months ago

tungrix commented 11 months ago

In taxonomy/components/icons.tsx

I got the error at type Icon as LucideIcon

'"lucide-react"' has no exported member named 'Icon'. Did you mean 'XIcon'?ts(2724)
adidoes commented 11 months ago

@tungrix just import LucideIcon instead of Icon as LucideIcon

KSSaiTeja commented 11 months ago

can i work on this.. i would be happy if anyone tell me what to do more clearly

adidoes commented 11 months ago

https://github.com/shadcn-ui/taxonomy/blob/651f984e52edd65d40ccd55e299c1baeea3ff017/components/icons.tsx#L26

:%s/Icon as LucideIcon/LucideIcon/g

vagnermaltauro commented 11 months ago

@tungrix I fixed this https://github.com/shadcn-ui/taxonomy/pull/228