styled-jsx: StyleSheetRegistry errors

I believe we found a regression in 2.0 which only shows up in production.

It seems to be some kind of cleanup done by styled-jsx 2.0. Where empty <style jsx>{``}</style>-tags are used sometimes but removed when navigating away which causes this error:

Error: StyleSheetRegistry: styleId: `jsx-2085888330` not found.

Iโ€™ve added a commit to my sample repo which shows the issue when you navigate back and forth between the โ€œpagesโ€.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 3
  • Comments: 16

Most upvoted comments

FYI beginning work on this, wish me luck ๐Ÿ˜‚ ๐ŸŽƒ ๐Ÿ’ฉ