question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Emotion SWC plugin improperly handled escape sequences

See original GitHub issue

Verify 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:open
  • Created a year ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, Jul 4, 2022

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 running npm 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.

0reactions
kdy1commented, Sep 27, 2022

Can you try a new version?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found