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:
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:

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:
node -v: 16.5.0npm -v: 7.19.1
Then, specify:
- Operating system: windows 11
- Browser and version: edge chromium 95.0.1020.44
Reproducible Demo
no concrete demo, this bug ocured in compilation time:

repos: clickme
Source: gaearon/react-hot-loader