If you want to setup and use shadcn/ui on the latest Next.js RC (not the stable release), regular setup fails for dependencies issues.
You must force it with npx --force:
npx --force shadcn@latest init
Same for installing components:
npx --force shadcn@latest add button