Bundling a component into an ES module
I'm having trouble bundling a React component that uses @emotion/core (with the css prop) into an ES module. I can properly build and bundle my component, but when used in a dependent (a separate project) that tries to import the ES module, I kept getting the following message…
Why is my h2 heading not red?
I'm struggling to understand why the following example isn't working using the withComponent method on a styled component wrapping a JSX component wrapping a styled component. Am I going mad or missing something obvious? https://codesandbox.io/s/emotion-issue-template-g4jni I'd…
Is it possible to make the Global feature respect component scoping?
I'm using emotion in a react app. I like the Global feature because I don't have to manually insert emotion styling into each element via the css prop anymore. The one Global element takes care of styling everything. But the problem is that global applies to every single…
Cannot read property '__emotion_forwardProp' of undefined
Hi! I'm building a nextjs app (v9.2.1) and using emotion / styled system to build the UI. When I compile for production and run the server, I get this error in the console: which apparently means tag is undefined. Not sure how this would be possible using styled. …