Skip to content

Heading children styles coming through as the string "heading" instead of theme values #1480

Answered by lachlanjc
erikdstock asked this question in Q&A
Discussion options

You must be logged in to vote

Yep, I've run into this many times too. It's super frustrating. This is usually caused by having multiple installations of Emotion in a project, which means the theme context won't be properly inherited by components. It looks like you've specified @emotion/react yourself in package.json. If you remove that & re-install/re-start, does it work?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@erikdstock
Comment options

@erikdstock
Comment options

@lachlanjc
Comment options

@lachlanjc
Comment options

Answer selected by lachlanjc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants