Tailwind CSS v4.1.18 + Next.js 16 Turbopack Build Failure #88443
Closed
mynameistito
started this conversation in
Turbopack Error Report
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey I'm having issues with Tailwind Please find an AI analysis below.
Tailwind CSS v4.1.18 + Next.js 16 Turbopack Build Failure AI Analysis
Error Output 1: Primary RangeError
Error Output 2: CSS Syntax Error
Error Output 3: Turbopack Build Failure
Error Output 4: OpenNext Build Failure
WHERE THE PROBLEM ACTUALLY EXISTS
🎯 Root Cause Location: Tailwind CSS v4.1.18
File:
node_modules/tailwindcss/dist/lib.js(minified)Function:
markUsedVariable()Code Location: Line 7717 in minified code (inside
markUsedVariablefunction)The Bug Mechanism:
The bug exists in how Tailwind CSS v4.1.18's
markUsedVariable()function processes CSS variable names during the build phase. Here's what happens:String.fromCodePoint(11025747)11025747in decimal =0xA825D3in hexadecimal0x10FFFF(1,114,111 in decimal)markUsedVariable()String.replace()to process variable namesIntegration Layer: Turbopack PostCSS Transform
File:
turbopack:///[turbopack-node]/transforms/postcss.tsFunction: PostCSS transform handler
Line: 70:34 (in the async transform operation)
Why Turbopack is the Integration Point:
Environments Affected
Diagnostic Test Results
✗ Test 1: Cache Clearing
Command:
rm -rf .next && rm -rf node_modules/.cache && bun cache cleanResult: FAILED - Same exact error occurred
What This Proves: The problem is NOT in:
✗ Test 2: CSS File Regeneration
Command: Read original file, rewrite
src/app/globals.csswith fresh contentResult: FAILED - Same exact error occurred
What This Proves: The problem is NOT:
✗ Test 3: Disable Turbopack
Command: Attempted to add
experimental.turbopack: falsetonext.config.tsError Received:
Unrecognized key(s) in object: 'turbopack' at "experimental"Result: FAILED - Next.js 16 doesn't support disabling Turbopack
What This Proves:
✓ Test 4: Downgrade Tailwind CSS (SUCCESSFUL)
Command:
bun add --save-dev tailwindcss@4.0.7 @tailwindcss/postcss@4.0.7Result: SUCCESS - Build completed without errors
Build Time: ~50-60 seconds total
Artifacts Generated:
.open-next/worker.js(OpenNext bundle)What This Proves:
Successful Build Output (After Downgrade to 4.0.7)
Summary: Where The Problem Lives
11025747generated inmarkUsedVariable()functionString.fromCodePoint()called with invalid Unicode valueAll reactions