-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - Failed to compile with TURBOPACK #4414
Comments
please provide a sandbox instead. |
Just ran in to this trying to upgrade my app to Nextjs 15 as well |
preliminary finding:
|
Same for me, adding 'addVariablesForColors' breaks it. |
This might not be a nextui problem then? I’m guessing we are all using some part of Aceternity UI which is what generally requires adding that function to tailwind? |
function addVariablesForColors({ addBase, theme }) {
let allColors = flattenColorPalette(theme('colors'))
let newVars = Object.fromEntries(
- Object.entries(allColors).map(([key, val]) => [`--${key}`, val]),
+ Object.entries(allColors).map(([key, val]) => [`--${key}`, () => val]),
)
addBase({
':root': newVars,
})
} |
@wingkwong u see u closed the issue but could you maybe take a look at this? thanks |
@Badetuch u may provide a repo / sandbox link. it's hard to debug based on the screenshot. |
@wingkwong here I hope this works, first time using sandbox.
|
@Badetuch please make the sandbox public |
@wingkwong |
NextUI Version
2.6.8
Describe the bug
After upgrading my application to Next.js 15 and enabling Turbopack, I’m encountering a CSS parsing error that prevents the project from compiling. The issue only occurs when Turbopack is active. Without Turbopack, the application builds correctly.
Environment:
Tailwind Config:
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Expected behavior
The project should compile successfully with Turbopack enabled.
Screenshots or Videos
Operating System Version
macOS
Browser
Chrome
The text was updated successfully, but these errors were encountered: