unovue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
4.89k stars 280 forks source link

lucide-vue-next: Cannot redeclare block-scoped variable #169

Closed CassioLuis closed 11 months ago

CassioLuis commented 11 months ago

Discussed in https://github.com/radix-vue/radix-vue/discussions/513

Originally posted by **CassioLuis** November 12, 2023 I know this is a bug with a third-party library, but I believe it's important for you to know. ![image_2023-11-12_09-19-25](https://github.com/radix-vue/radix-vue/assets/21344396/aa1d916f-fe4e-4c66-997a-f5cec3ef86b6) I'm just `npm run build` my typescript project, with some components that make use of `lucide-vue-next` (accordion and toast components).
zernonia commented 11 months ago

Hey @CassioLuis . Can you provide a minimal reproduction for this? Radix vue package doesn't export any Icon. You sure it's related to radix-vue?

CassioLuis commented 11 months ago

I'm sorry, this is related to the shadcn vue components, I hadn't noticed that.

zernonia commented 11 months ago

@CassioLuis I've transfer the issue here, do you mind provide a minimal reproduction please? 😁

CassioLuis commented 11 months ago

here is the link to stackblitz:

https://stackblitz.com/edit/vitejs-vite-sd3x3s

just run 'npm run build'.

zernonia commented 11 months ago

Thanks @CassioLuis ! you need to add "skipLibCheck": true in your tsconfig to prevent type checking for libs.

CassioLuis commented 11 months ago

thanks, this worked for me !