Skip to content

when props include "this" #1764

@www159

Description

@www159

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions