ITADN

[bug]: Font and other stying is not applying in next application when I create a new project

#10768OpensjanaX01 创建于 2026-05-25
bug
S
sjanaX01commented
### Describe the bug When I create a new Next.js project using: pnpm create next-app@latest my-app Environment: pnpm version: 10.23.0 At this stage, the default fonts and styling provided by the Next.js application work correctly. The issue starts after initializing shadcn/ui and adding components using: pnpm dlx shadcn@latest add --all This command successfully initializes the project structure and adds all components to the codebase. However, after that, when I open the webpage, the default fonts and styling are no longer being applied correctly. ### Affected component/components Wholde shadcn ui ### How to reproduce ## Steps to Reproduce 1. Create a new Next.js app. Next.js version: `16.2.6` Run: ```bash id="u1q2m3" pnpm create next-app@latest my-app ``` 2. Initialize shadcn/ui and add all components: ```bash id="x9y8z7" pnpm dlx shadcn@latest add --all ``` 3. Start the development server and open the app in the browser. ## Expected Behavior The default Next.js fonts and styling should continue working correctly after adding shadcn/ui components. ## Actual Behavior After running the shadcn/ui command, the default fonts and styling are no longer applied correctly on the webpage. ### Codesandbox/StackBlitz link _No response_ ### Logs ```bash ``` ### System Info ```bash Windows 11 Next.js version: `16.2.6` pnpm version: `10.23.0` shadcnUI version: `4.8.0` ``` ### Before submitting - [x] I've made research efforts and searched the documentation - [x] I've searched for existing issues
0 条评论