You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am now facing an issue with cssinjs while turbopack is enabled. It is fine while turbopack is disabled. And css file can be extracted successfully,
But When I enable turpopack and restart the project, the file output path is not correct. And that css file is empty. Css styles are not extracted at all.
And when I debug _document.ts file, when it reaches this line:
I got file not found error:
So that cache is empty and can not be extracted, I guess this is the root cause.
Hope someone could provide some help, thanks a lot.
Below is my package.json configuration:
Current:
Css file is extracted under wrong output path
Expected:
Css file should be extracted here
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Available memory (MB): 32494
Available CPU cores: 12
Binaries:
Node: 22.14.0
npm: 10.9.2
Yarn: 4.7.0
pnpm: N/A
Relevant Packages:
next: 14.2.24 // An outdated version detected (latest is 15.2.4), upgrade is highly recommended!
eslint-config-next: 15.2.0
react: 18.3.1
react-dom: 18.3.1
typescript: 5.7.3
Next.js Config:
output: N/A
⚠ An outdated version detected (latest is 15.2.4), upgrade is highly recommended!
Please try the latest canary version (`npm install next@canary`) to confirm the issue still exists before creating a new issue.
Read more - https://nextjs.org/docs/messages/opening-an-issue
Which area(s) are affected? (Select all that apply)
CSS
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
No response
The text was updated successfully, but these errors were encountered:
endless9567
changed the title
Turbo pack output path issue with ant design css in js
Turbopack output path issue with ant design css in js
Mar 26, 2025
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/6tngmj
To Reproduce
I am now facing an issue with cssinjs while turbopack is enabled. It is fine while turbopack is disabled. And css file can be extracted successfully,
But When I enable turpopack and restart the project, the file output path is not correct. And that css file is empty. Css styles are not extracted at all.
And when I debug _document.ts file, when it reaches this line:
I got file not found error:
So that
cache
is empty and can not be extracted, I guess this is the root cause.Hope someone could provide some help, thanks a lot.
Below is my package.json configuration:
Current vs. Expected behavior
Current:
Css file is extracted under wrong output path
Expected:
Css file should be extracted here
Provide environment information
Which area(s) are affected? (Select all that apply)
CSS
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: