Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Integrating shadcn in inertia js, react 19 and tailwind v4 #259

@CPloscaru

Description

@CPloscaru

Hello guys,

I tried to follow the instruction here (https://inertia-rails.dev/cookbook/integrating-shadcn-ui) to add shadcn to my actual project.
I am running Inertia JS with React 19.1.0, JS, Tailwind-vite 4.1.5 but when I run the commande "npx shadcn@canary init", it didn't find the tailwind

✔ Preflight checks.
✔ Verifying framework. Found Vite.
✖ Validating Tailwind CSS.
✔ Validating import alias.

I checked different issue related to vite and react (shadcn-ui/ui#6585) but I can't figure out why it do not work.
My best guess it's a path related issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions