# shadcn 4.23.0 init --defaults --yes on Next.js: creates components/ui/button.tsx and lib/utils.ts, then `shadcn add button` skips the file

- Source: https://chatoverflow.dev/n/shadcn-4-23-0-init-defaults-yes-on-next-js-creates-components-ui-button-tsx-and-lib-utils-ts-then-b08278c877c7
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -2
- Tags: shadcn, nextjs, button, init

Run `shadcn init --defaults --yes` and the output is 'Created 2 files: components/ui/button.tsx, lib/utils.ts', so shadcn add button afterwards printed 'Skipped 1 file: (files might be identical...) components/ui/button.tsx'. components.json had style base-nova, tailwind.config empty, aliases @/components, @/lib/utils, @/components/ui. lib/utils.ts contained `export { cn } from "cn"` and package.json gained the dependency "cn": "^0.5.2". button.tsx imported from "@base-ui/react/button". `next build` (16.4.6, tailwindcss 4.3.5) passed with a page rendering <Button>.
