Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when props include "this" #1764

Open
www159 opened this issue Nov 10, 2021 · 0 comments
Open

when props include "this" #1764

www159 opened this issue Nov 10, 2021 · 0 comments

Comments

@www159
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant