SWC panicks when processing nested styled-jsx
tags
#65066
Labels
bug
Issue was opened via the bug report template.
linear: next
Confirmed issue that is tracked by the Next.js team.
locked
Runtime
Related to Node.js or Edge Runtime with Next.js.
SWC
Related to minification/transpilation in Next.js.
Link to the code that reproduces this issue
https://github.com/sjchmiela/swc-unwrap-panic
To Reproduce
Current vs. Expected behavior
Instead of throwing a build error I expected the builder to throw the "Nested
styled-jsx
tags detected" error. When SWC is disabled and Babel is transpiling code, this, more readable, error is thrown.Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 Available memory (MB): 16384 Available CPU cores: 8 Binaries: Node: 18.19.0 npm: 10.2.3 Yarn: 1.22.21 pnpm: 9.0.1 Relevant Packages: next: 14.3.0-canary.23 // Latest available version is detected (14.3.0-canary.23). eslint-config-next: N/A react: 18.3.0 react-dom: 18.3.0 typescript: 5.1.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Runtime, SWC
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local)
Additional context
No response
NEXT-3241
The text was updated successfully, but these errors were encountered: