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
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
styled-jsx parsing doesn't handle interpolation braces correctly in some cases
Input code
Config
None -- using next.js
Playground link (or link to the minimal reproduction)
swc-project/plugins#340
SWC Info output
Using:
Expected behavior
Styles below
should continue to work.
It appears that the
}
at${SomeStyle}
is being captured by some kind of grammar in the parser.It works fine if you update the style to:
Or if you do something like
Actual behavior
An extra curly brace is injected into the css -- subsequent styles get lost or parsed incorrectly.
Version
1.7.18
Additional context
I'm upgrading from an old version of swc (
"@swc/cli": "0.1.62",
"@swc/core": "1.3.37",
"@swc/helpers": "0.4.14",
) -- it used to work fine.
The text was updated successfully, but these errors were encountered: