Skip to content

Commit 321bc8f

Browse files
committed
🤖 fix: Update Tailwind CSS to v4.1.15 and fix components.json config
- Update tailwindcss and @tailwindcss/vite from 4.0.0 to 4.1.15 - Set components.json config field to empty string for Tailwind v4 - Fixes production build error: 'Cannot convert undefined or null to object' The error only occurred in production builds due to a bug in v4.0.0. Version 4.1.15 resolves the issue and builds successfully. Generated with `cmux`
1 parent 488a40c commit 321bc8f

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

bun.lock

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@storybook/react": "^8.6.14",
4646
"@storybook/react-vite": "^8.6.14",
4747
"@storybook/test-runner": "^0.23.0",
48-
"@tailwindcss/vite": "^4.0.0",
48+
"@tailwindcss/vite": "^4.1.15",
4949
"@testing-library/react": "^16.3.0",
5050
"@types/bun": "^1.2.23",
5151
"@types/cors": "^2.8.19",
@@ -99,7 +99,7 @@
9999
"shiki": "^3.13.0",
100100
"storybook": "^8.6.14",
101101
"tailwind-merge": "^3.3.1",
102-
"tailwindcss": "^4.0.0",
102+
"tailwindcss": "^4.1.15",
103103
"ts-jest": "^29.4.4",
104104
"tsc-alias": "^1.8.16",
105105
"typescript": "^5.1.3",
@@ -711,7 +711,7 @@
711711

712712
"@tailwindcss/oxide-win32-x64-msvc": ["@tailwindcss/oxide-win32-x64-msvc@4.1.15", "", { "os": "win32", "cpu": "x64" }, "sha512-NLeHE7jUV6HcFKS504bpOohyi01zPXi2PXmjFfkzTph8xRxDdxkRsXm/xDO5uV5K3brrE1cCwbUYmFUSHR3u1w=="],
713713

714-
"@tailwindcss/vite": ["@tailwindcss/vite@4.0.0", "", { "dependencies": { "@tailwindcss/node": "^4.0.0", "@tailwindcss/oxide": "^4.0.0", "lightningcss": "^1.29.1", "tailwindcss": "4.0.0" }, "peerDependencies": { "vite": "^5.2.0 || ^6" } }, "sha512-4uukMiU9gHui8KMPMdWic5SP1O/tmQ1NFSRNrQWmcop5evAVl/LZ6/LuWL3quEiecp2RBcRWwqJrG+mFXlRlew=="],
714+
"@tailwindcss/vite": ["@tailwindcss/vite@4.1.15", "", { "dependencies": { "@tailwindcss/node": "4.1.15", "@tailwindcss/oxide": "4.1.15", "tailwindcss": "4.1.15" }, "peerDependencies": { "vite": "^5.2.0 || ^6 || ^7" } }, "sha512-B6s60MZRTUil+xKoZoGe6i0Iar5VuW+pmcGlda2FX+guDuQ1G1sjiIy1W0frneVpeL/ZjZ4KEgWZHNrIm++2qA=="],
715715

716716
"@testing-library/dom": ["@testing-library/dom@10.4.0", "", { "dependencies": { "@babel/code-frame": "^7.10.4", "@babel/runtime": "^7.12.5", "@types/aria-query": "^5.0.1", "aria-query": "5.3.0", "chalk": "^4.1.0", "dom-accessibility-api": "^0.5.9", "lz-string": "^1.5.0", "pretty-format": "^27.0.2" } }, "sha512-pemlzrSESWbdAloYml3bAJMEfNh1Z7EduzqPKprCH5S341frlpYnUEW0H72dLxa6IsYr+mPno20GiSm+h9dEdQ=="],
717717

@@ -2695,7 +2695,7 @@
26952695

26962696
"tailwind-merge": ["tailwind-merge@3.3.1", "", {}, "sha512-gBXpgUm/3rp1lMZZrM/w7D8GKqshif0zAymAhbCyIt8KMe+0v9DQ7cdYLR4FHH/cKpdTXb+A/tKKU3eolfsI+g=="],
26972697

2698-
"tailwindcss": ["tailwindcss@4.0.0", "", {}, "sha512-ULRPI3A+e39T7pSaf1xoi58AqqJxVCLg8F/uM5A3FadUbnyDTgltVnXJvdkTjwCOGA6NazqHVcwPJC5h2vRYVQ=="],
2698+
"tailwindcss": ["tailwindcss@4.1.15", "", {}, "sha512-k2WLnWkYFkdpRv+Oby3EBXIyQC8/s1HOFMBUViwtAh6Z5uAozeUSMQlIsn/c6Q2iJzqG6aJT3wdPaRNj70iYxQ=="],
26992699

27002700
"tapable": ["tapable@2.3.0", "", {}, "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg=="],
27012701

@@ -3041,8 +3041,6 @@
30413041

30423042
"@storybook/test-runner/jest": ["jest@29.7.0", "", { "dependencies": { "@jest/core": "^29.7.0", "@jest/types": "^29.6.3", "import-local": "^3.0.2", "jest-cli": "^29.7.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" }, "optionalPeers": ["node-notifier"], "bin": { "jest": "bin/jest.js" } }, "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw=="],
30433043

3044-
"@tailwindcss/node/tailwindcss": ["tailwindcss@4.1.15", "", {}, "sha512-k2WLnWkYFkdpRv+Oby3EBXIyQC8/s1HOFMBUViwtAh6Z5uAozeUSMQlIsn/c6Q2iJzqG6aJT3wdPaRNj70iYxQ=="],
3045-
30463044
"@tailwindcss/oxide-wasm32-wasi/@emnapi/core": ["@emnapi/core@1.5.0", "", { "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" }, "bundled": true }, "sha512-sbP8GzB1WDzacS8fgNPpHlp6C9VZe+SJP3F90W9rLemaQj2PzIuTEl1qDOYQf58YIpyjViI24y9aPWCjEzY2cg=="],
30473045

30483046
"@tailwindcss/oxide-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@1.5.0", "", { "dependencies": { "tslib": "^2.4.0" }, "bundled": true }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="],

components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"rsc": false,
55
"tsx": true,
66
"tailwind": {
7-
"config": "tailwind.config.ts",
7+
"config": "",
88
"css": "src/styles/globals.css",
99
"baseColor": "slate",
1010
"cssVariables": true,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"@storybook/react": "^8.6.14",
8686
"@storybook/react-vite": "^8.6.14",
8787
"@storybook/test-runner": "^0.23.0",
88-
"@tailwindcss/vite": "^4.0.0",
88+
"@tailwindcss/vite": "^4.1.15",
8989
"@testing-library/react": "^16.3.0",
9090
"@types/bun": "^1.2.23",
9191
"@types/cors": "^2.8.19",
@@ -139,7 +139,7 @@
139139
"shiki": "^3.13.0",
140140
"storybook": "^8.6.14",
141141
"tailwind-merge": "^3.3.1",
142-
"tailwindcss": "^4.0.0",
142+
"tailwindcss": "^4.1.15",
143143
"ts-jest": "^29.4.4",
144144
"tsc-alias": "^1.8.16",
145145
"typescript": "^5.1.3",

0 commit comments

Comments
 (0)