-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Tailwind: NextJs production build removes styles #5187
Copy link
Copy link
Closed
Labels
Component: NextJSNextJS related issueNextJS related issueComponent: TailwindTailwind specific issueTailwind specific issueResolution: WorkaroundIssue or pull request contains a workaround. It needs to be reviewed further by Core TeamIssue or pull request contains a workaround. It needs to be reviewed further by Core Team
Description
Activity
Metadata
Metadata
Assignees
Labels
Component: NextJSNextJS related issueNextJS related issueComponent: TailwindTailwind specific issueTailwind specific issueResolution: WorkaroundIssue or pull request contains a workaround. It needs to be reviewed further by Core TeamIssue or pull request contains a workaround. It needs to be reviewed further by Core Team
Describe the bug
When running a dev build, the default Primereact Tailwind style seems fine. However when doing a prod build, it's removed.

Dev build:
Prod build:

Reproducer
https://codesandbox.io/p/sandbox/dazzling-paper-7mmcnz
PrimeReact version
10.0.7
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
Default Tailwind style should appear when doing a production build.