0

I'm using create react app which i ejected. enter image description here

I've encountered the method=()=>{} for retaining scope and know it as babel-transform-class-properties. The code works as expected and the debugger even shows the values above the line i've selected (left = 100...). However, when i try to inspect this it shows Window. If it were really Window, this code would throw an error at the first line.

I see that a source map is loaded. What is impacting this and how can I address it?

Ideally i'd like to be able to inspect the variable in the view above. Alternatively, i'd prefer to see the transpiled code that can correctly be inspected over this.

pailhead
  • 5,162
  • 2
  • 25
  • 46
  • Sounds like a bug in devtools. – wOxxOm Sep 28 '18 at 13:07
  • hmm, unlikely that it's some specific type, or configuration of the source map? It didn't occur to me to check in another browser. – pailhead Sep 28 '18 at 13:27
  • Not a duplicate of that question but i cant find the actual duplicate. Something to do with intricacies of the V8 engine, it's by design. – pailhead Oct 12 '18 at 16:39

0 Answers0