gaearon / gaearon/react-hot-loader
when props include "this"
- Dominant language
- JavaScript
- Stars
- 12.2k
- Forks
- 775
- PR merge metrics
- No merged PRs in 30d
Description
### Description
What you are reporting:
`this` failed to be resolved.
I do what follows show:
```ts
class EmojiView extends EventEmitter {
...
mock() {
ReactDOM.render(, 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:
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:


repos: [clickme](https://github.com/www159/react-issue.git)
Contributor guide
Assessment
This issue has not been assessed yet.