-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Variable expansions for media queries inside styled-jsx break with Turbopack #61788
Comments
swc-project/plugins#267 will fix the issue |
# Turbopack changes * vercel/turborepo#7342 <!-- OJ Kwon - docs(turbopack): build, deploy rustdocs --> * vercel/turborepo#7356 <!-- OJ Kwon - ci(workflow): remove doc deploy --> * vercel/turborepo#7272 <!-- Donny/강동윤 - build: Update `swc_core` to `v0.90.7` --> ### What? Update swc crates ### Why? - To apply swc-project/swc#8532 and other bugfixes ### How? - Closes PACK-2389 - Closes PACK-2446 - Closes #61788
Re-opening as swc-project/plugins#267 is not applied by #61662. |
I'm still seeing this repro on Is that expected, is there a later release that will fix this? |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/miselin/next-style-jsx-var-expansion-repro
To Reproduce
npm run dev
npm run dev:turbo
Current vs. Expected behavior
Expected: I see the expected variable expansion and correct media query CSS, allowing the use of constants for controlling media query breakpoints in an application.
Current: enabling Turbopack instead triggers an exception during page build unless the variables are removed.
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.6.0: Thu Nov 2 07:43:57 PDT 2023; root:xnu-8796.141.3.701.17~6/RELEASE_ARM64_T6000 Binaries: Node: 20.10.0 npm: 10.2.3 Yarn: N/A pnpm: 8.11.0 Relevant Packages: next: 14.1.1-canary.42 // Latest available version is detected (14.1.1-canary.42). eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 5.1.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack (--turbo)
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
This does not repro with Next
14.1.0
. The first version that repros this issue is14.1.1-canary.9
, canary versions earlier than that work as expected.PACK-2446
The text was updated successfully, but these errors were encountered: