Open mrafieefard opened 1 month ago
electron.vite.config.ts is part of electron vite package
@mrafieefard Duplicate your electron.vite.config.ts
to vite.config.ts
, shadcn needs the vite.config.ts
to exist (for its preflight checks), but electron-vite requires electron.vite.config.ts
to exist (no idea why, but it cant be named vite.config.ts
). To prevent duplicating files you can import one into the other so you only have to write the config once.
@rafeautie can you please share your electron-vite-shadcn project structure?
@rafeautie can you please share your electron-vite-shadcn project structure?
Sure
@mrafieefard Duplicate your
electron.vite.config.ts
tovite.config.ts
, shadcn needs thevite.config.ts
to exist (for its preflight checks), but electron-vite requireselectron.vite.config.ts
to exist (no idea why, but it cant be namedvite.config.ts
). To prevent duplicating files you can import one into the other so you only have to write the config once.
I will check it but I think this idea works
Describe the bug
I'm trying to install shadcn on electron vite but when I use
bunx --bun shadcn@latest init
I get Verifying framework errorI know there are other module for electron, vite and shadcn but I want to use officials
When I use shadcn cli 0.8.0 I can install successful but not for latest version
Affected component/components
None
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting