-
Notifications
You must be signed in to change notification settings - Fork 303
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
Directory .next/static/css
is no longer being generated
#1491
Comments
.next/static/css
is no longer are being generated.next/static/css
is no longer being generated
@mrm007 |
AFAIK the Next.js integration has not been tested with Next.js 14 and above. I’m surprised the plugin version 2.3.7 still works. @askoufis might know more. |
There's also this issue with Turbopack https://x.com/0_001x_dev/status/1848744288743522561 |
@royjosefsson This is intentional behaviour that was implemented in v2.4.0 of the next plugin (#1365). Does this change affect your application in some way? CSS files are still output during a production build. |
Goal: v2.3.0
v2.3.7
v2.4.x
|
In 2.4.x, CSS is now injected into the DOM during development, for reasons described in #1365. In production builds (I tested it in your reproduction), CSS is emitted to |
@royjosefsson Are you still experiencing this issue? As far as I can tell the |
@askoufis Here is a screendump of all the files that's being generated for me: |
@askoufis CSS is no longer being generated in We could consider closing this issue and I'll fix my code to this breaking change |
Yes, this is what I have been saying above. This was an intentional change in behaviour. Is there a reason you need the |
My primary reason no longer applies to this issue, so I'll create a new one that better aligns with it. |
Describe the bug
Issue Summary
Upgrading
@vanilla-extract/next-plugin
from version2.3.7
to2.4.6
,results in the
.next/static/css
directory no longer being generated.Steps to Reproduce
npm run dev
(using Next.js page-router)Expected Behavior
Running
npm run dev
in version2.4.6
generates.next/static/css
along with its files insideActual Behavior
Running
npm run dev
in version2.4.6
doesn't generate.next/static/css
Severity
Reproduction
https://github.com/royjosefsson/vanilla-extract-issue/tree/main
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: