Emotion SWC plugin improperly handled escape sequences
See original GitHub issueVerify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: linux
Arch: x64
Version: #1 SMP Wed Feb 19 06:37:35 UTC 2020
Binaries:
Node: 16.15.0
npm: 8.5.5
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 12.2.1-canary.2
eslint-config-next: N/A
react: 18.2.0
react-dom: 18.2.0
What browser are you using? (if relevant)
N/A
How are you deploying your application? (if relevant)
N/A
Describe the Bug
With Emotion SWC enabled: the text of the escape sequence is rendered Without Emotion SWC enabled: the symbol is rendered properly
To toggle between the two, apply to next.config.js
and restart the app.
+ emotion: false,
- emotion: {
- autoLabel: "never",
- sourceMap: true,
- },
Expected Behavior
In both situations, the symbol is properly rendered.
Note that the escape sequence \203A
works as expected in both scenarios.
Link to reproduction
https://github.com/tills13/nextjs-emotion-escape
To Reproduce
Run
$ npm ci
$ npm run dev
Navigate to whatever URL nextjs outputs. You should see the escape sequence rendered as the text of the escape rather than as a symbol.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
emotion-swc-plugin
Start using emotion-swc-plugin in your project by running `npm i emotion-swc-plugin`. There are no other projects in the npm registry using ...
Read more >Vhf - River Thames Conditions - Environment Agency - GOV.UK
Element tv codes for rca remote, Carndonagh post office opening times, Municode miami 21! ... Imagenes de lucas sugo, Spross immobilien, Handles of...
Read more >2011-2012 Catalog
accredited SWC. The college offers a comprehensive curriculum, preparing students for transfer to four-year colleges or universities.
Read more >Compare Versions | @elliemae/pui-cli | npm
GHSA-r8f7-9pfq-mjmvImproper Certificate Validation in node-sass ... @babel/plugin-transform-unicode-escapes 7.18.10 ... @swc/core-linux-arm64-gnu 1.3.23.
Read more >CPC Scheme - G05B CONTROL OR REGULATING ...
Programme control other than numerical control, i.e. in sequence controllers ... characterised by data handling or data format, e.g. reading, buffering or ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please verify your issue reproduces with
next@canary
. The canary version of Next.js ships daily and includes all features and fixes that have not been released to the stable version yet. Think of canary as a public beta. Some issues may already be fixed in the canary version, so please verify that your issue reproduces by runningnpm install next@canary
. If the issue does not reproduce with the canary version, then it has already been fixed and this issue can be closed.Can you try a new version?