shadcn-ui / next-template

A Next.js 13 template for building apps with Radix UI and Tailwind CSS.

Home Page:https://template.shadcn.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues with `src`

ccrvlh opened this issue · comments

commented

Hi, after cloning I moved everything to a src dir except public (node_modules and .next are also outside the src).
I then edited the basePath to "./src" but doesn't work so well: the app compiles, doesn't give any errors, but it completely loses the formatting, the Next and GitHub logo are gigantic, and things are aligned in bottom left corner. Everything seems to work fine when not using src. I also tried changing the paths on tsconfig to "@/*": ["./src/*"] - from what I understand this has the same effect as basePath.

All imports resolve, and point to the right place (they do consider @ as being the src dir). I wondering if there's anything what I might be doing wrong, couldn't find a way to troubleshoot this.

Really appreciate your work on sharing this and ui thanks a lot!

commented

For anyone with the same issue, I also had to change the content section on tailwind.config.js. As you can see, I'm not very familiar with frontend tooling :)