Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"eslint-config-next": "15.3.1",
"prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.11",
"tailwindcss": "^4.1.11",
"tailwindcss": "^3.4.17",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This downgrades Tailwind CSS from v4.1.11 to v3.4.17, which is a major version downgrade that will break the application due to incompatible APIs between v3 and v4.

View Details
📝 Patch Details
diff --git a/apps/www/package.json b/apps/www/package.json
index 7cfd1e3..af076f6 100644
--- a/apps/www/package.json
+++ b/apps/www/package.json
@@ -109,7 +109,7 @@
     "eslint-config-next": "15.3.1",
     "prettier": "^3.4.2",
     "prettier-plugin-tailwindcss": "^0.6.11",
-    "tailwindcss": "^3.4.17",
+    "tailwindcss": "^4.1.13",
     "tw-animate-css": "^1.3.7",
     "framer-motion": "^12.23.12",
     "typescript": "^5",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 06cce19..eade853 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -275,7 +275,7 @@ importers:
         version: 11.6.3(acorn@8.15.0)(fumadocs-core@15.7.7(@types/react@19.1.2)(next@15.3.1(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(next@15.3.1(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
       fumadocs-ui:
         specifier: 15.3.1
-        version: 15.3.1(@types/react-dom@19.1.2(@types/react@19.1.2))(@types/react@19.1.2)(next@15.3.1(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(tailwindcss@3.4.17(ts-node@10.9.2(@types/node@20.19.10)(typescript@5.9.2)))
+        version: 15.3.1(@types/react-dom@19.1.2(@types/react@19.1.2))(@types/react@19.1.2)(next@15.3.1(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(tailwindcss@4.1.13)
       input-otp:
         specifier: ^1.4.2
         version: 1.4.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
@@ -389,8 +389,8 @@ importers:
         specifier: ^0.6.11
         version: 0.6.14(@ianvs/prettier-plugin-sort-imports@4.6.1(prettier@3.6.2))(prettier@3.6.2)
       tailwindcss:
-        specifier: ^3.4.17
-        version: 3.4.17(ts-node@10.9.2(@types/node@20.5.1)(typescript@5.9.2))
+        specifier: ^4.1.13
+        version: 4.1.13
       tw-animate-css:
         specifier: ^1.3.7
         version: 1.3.7
@@ -11984,7 +11984,7 @@ snapshots:
       - acorn
       - supports-color
 
-  fumadocs-ui@15.3.1(@types/react-dom@19.1.2(@types/react@19.1.2))(@types/react@19.1.2)(next@15.3.1(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(tailwindcss@3.4.17(ts-node@10.9.2(@types/node@20.19.10)(typescript@5.9.2))):
+  fumadocs-ui@15.3.1(@types/react-dom@19.1.2(@types/react@19.1.2))(@types/react@19.1.2)(next@15.3.1(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(tailwindcss@4.1.13):
     dependencies:
       '@radix-ui/react-accordion': 1.2.11(@types/react-dom@19.1.2(@types/react@19.1.2))(@types/react@19.1.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
       '@radix-ui/react-collapsible': 1.1.11(@types/react-dom@19.1.2(@types/react@19.1.2))(@types/react@19.1.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
@@ -12008,7 +12008,7 @@ snapshots:
       react-remove-scroll: 2.7.1(@types/react@19.1.2)(react@19.1.0)
       tailwind-merge: 3.3.1
     optionalDependencies:
-      tailwindcss: 3.4.17(ts-node@10.9.2(@types/node@20.5.1)(typescript@5.9.2))
+      tailwindcss: 4.1.13
     transitivePeerDependencies:
       - '@oramacloud/client'
       - '@types/react'

Analysis

Mismatched Tailwind CSS versions cause build failure in apps/www

What fails: Build process fails in apps/www with "Can't resolve 'tailwindcss'" error due to version mismatch between tailwindcss (v3.4.17) and @tailwindcss/postcss (v4.1.13)

How to reproduce:

cd apps/www && pnpm run build

Result: Build fails with [Error: Can't resolve 'tailwindcss' in '/vercel/sandbox/sandpits/warm-deer/apps/www/styles'] because the CSS file uses v4 syntax (@import "tailwindcss";) but only v3 package is installed

Expected: Build should succeed with aligned Tailwind CSS versions - the styles/globals.css file uses v4 features like @theme inline, @custom-variant, and @utility directives which require v4

Root cause: Package mismatch where Tailwind CSS v3 cannot process v4 import syntax and directives, confirmed by documentation showing v4 uses CSS-based configuration

"tw-animate-css": "^1.3.7",
"framer-motion": "^12.23.12",
"typescript": "^5",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"puppeteer": "^23.6.0",
"tailwindcss": "3.4.6",
"tailwindcss": "3.4.17",
"tailwindcss-animate": "^1.0.5",
"tsx": "^4.1.4",
"turbo": "^1.9.9",
Expand Down
57 changes: 27 additions & 30 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading