when props include "this"

Author: www159Created Nov 10, 2021Updated Nov 10, 2021

Description

What you are reporting: this failed to be resolved.

I do what follows show:

typescript
class EmojiView extends EventEmitter {
...
  mock() {
     ReactDOM.render(<App emitter={this}/>, element)
}
 ...
}

just want to emit some events out of react env.

Expected behavior

What you think should happen:

Actual behavior

What actually happens: but reported: image

image it seems like type-define error confronting this

Environment

React Hot Loader version: 4.13

Run these commands in the project folder and fill in their results:

  1. node -v: 16.5.0
  2. npm -v: 7.19.1

Then, specify:

  1. Operating system: windows 11
  2. Browser and version: edge chromium 95.0.1020.44

Reproducible Demo

no concrete demo, this bug ocured in compilation time: image image

repos: clickme

Source: gaearon/react-hot-loader