Skip to content

Conversation

@FranjoMindek
Copy link
Contributor

@FranjoMindek FranjoMindek commented Nov 13, 2025

Moves Shadcn directories under src/client directory.
e.g. src/components/ui -> src/client/components/ui

Newly generated Shadcn components will be placed at correct locations,
but currently it's impossible to get them to generate their import paths properly because:

  1. Shadcn itself is buggy and doesn't really respect the components.json:
    [bug]: Custom utils path inside components.json is being ignored shadcn-ui/ui#5544

  2. We can't create aliases that Shadcn requires to work properly because of Wasp limitations:
    https://v3.shadcn.com/docs/components-json
    e.g. @/client/*": ["src/client/*"], path alias would be nice (and would make everything work)

While current components work because we fixed the imports manually.
Users adding any new components will also need to do the same for their own.

Fixes #471

Copy link
Collaborator

@infomiho infomiho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straightforwards and the e2e tests are passing - LGTM

@FranjoMindek FranjoMindek merged commit adb8bb6 into main Nov 14, 2025
1 check failed
@FranjoMindek FranjoMindek deleted the franjo/shadcn-directory branch November 14, 2025 15:04
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.

Reconsider directory structure for shadcn components and hooks

3 participants