I’m installing shadcn in a React application with Vite, but when following the steps in their documentation, the components are placed inside the @ directory, and I can’t use them.
One thing I’ve noticed is that when creating the React project, I have three TypeScript configuration files: tsconfig.json, tsconfig.app.json, and tsconfig.node.json.
Project structure:
–| @
—-| components
——| ui
–| tailwind.config.js
–| src
—-| App.tsx
I want the shadcn library components to be placed inside the src directory.
Joel Rojas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.