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.

Cannot read property '__emotion_real' of undefined

See original GitHub issue

So, we’re seeing this issue occasionally logged from Emotion. The component in question is defined as follows, where motion.div is a framer-motion animated element:

const StyledDiv = styled(motion.div)`
  backface-visibility: hidden;
  bottom: 0;
  ...

My best guess is that Emotion is trying to do business before framer-motion has made the element available. I don’t know whether it would be possible to suppress this noise … ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Andaristcommented, Mar 11, 2021

Heh, given Chrome 80+ pops up here this doesn’t sound like a Proxy-problem (or at least there has to be something else to it). There are a lot of things that can happen on the web though - including external browser extensions messing up with stuff, so I wouldn’t really be concerned much about it until you receive a real user report about this.

0reactions
Andaristcommented, Mar 12, 2021

Going to close this then - if you ever get a repro case for this then let me know. I’m quite curious regarding what is actually happening there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'value' of undefined #1354
I think the key is that you need to use emotion babel plugin, without it, it works fine. It fails in this demo...
Read more >
Cannot read property 'main' of undefined in MUI v5
In v5 they state they want to align with the material spec and no longer include the 'default' grey color because it isn't...
Read more >
Using Emotion in Your Real Estate Marketing Strategy
The power of emotion is undeniable so incorporating it into your real estate marketing strategy is essential. Here's tips for crafting ...
Read more >
How to Avoid Getting 'Cannot read property of undefined' in ...
Learn how you can avoid getting the famous 'Cannot read property of undefined' error in JavaScript with the logical OR operator.
Read more >
can not read properties of undefined | app showing blank page
Your browser can't play this video. ... can not read properties of undefined | reading render error in react | app showing blank...
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