TypeError: canvasEl.addEventListener is not a function
- Dominant language
- JavaScript
- Stars
- 8k
- Forks
- 637
- PR merge metrics
- No merged PRs in 30d
Description
## Environment
```js
Environment:
OS: macOS Catalina 10.15.6
Node: 10.16.0
Yarn: 1.16.0
npm: 6.9.0
Packages:
"react": "16.13.1",
"react-native": "0.63.2",
"@antv/f2": "^3.7.7",
"react-native-canvas": "^0.1.37"
```
## Step to reproduce
https://github.com/chenshuai2144/f2-demo,
I forked this demo to run, but got error:
"TypeError: canvasEl.addEventListener is not a function"
Contributor guide
Research direction
Open the linked f2-demo and reproduce the error with the listed React Native, @antv/f2, and react-native-canvas versions. Trace the canvas element setup that leads to "canvasEl.addEventListener is not a function"; done means the demo runs without this TypeError and renders its chart.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- data-visualization, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100