tailwindcss 4.1.18 build issues - Nextjs with @opennext/cloudflare #19556
-
|
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 AnalysisError Output 1: Primary RangeErrorError Output 2: CSS Syntax ErrorError Output 3: Turbopack Build FailureError Output 4: OpenNext Build FailureWHERE THE PROBLEM ACTUALLY EXISTS🎯 Root Cause Location: Tailwind CSS v4.1.18File:
Integration Layer: Turbopack PostCSS TransformFile:
Environments AffectedDiagnostic Test Results✗ Test 1: Cache ClearingCommand:
✗ Test 2: CSS File RegenerationCommand: Read original file, rewrite
✗ Test 3: Disable TurbopackCommand: Attempted to add
✓ Test 4: Downgrade Tailwind CSS (SUCCESSFUL)Command:
Successful Build Output (After Downgrade to 4.0.7)Summary: Where The Problem Lives
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
Seems like there might be some file or code in the build environment that is causing the problem. It would seem that Tailwind scans this file causing the invalid code point error. You could try:
Related: |
Beta Was this translation helpful? Give feedback.
-
|
@mynameistito this work for me : npm install tailwindcss@4.0.7 @tailwindcss/postcss@4.0.7 --legacy-peer-deps |
Beta Was this translation helpful? Give feedback.
-
|
All sorted ty for the elp! |
Beta Was this translation helpful? Give feedback.
Seems like there might be some file or code in the build environment that is causing the problem. It would seem that Tailwind scans this file causing the invalid code point error. You could try:
DEBUG=*to get atailwind-*.logfile. This file could then show you the files it scans and reveal any weird directories/files it scans.source()/@sourcesyntaxes to only explicitly scan certain files/paths.Related: