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

TypeError: Cannot call a class as a function #1

Open
skumarcm opened this issue Sep 2, 2021 · 0 comments
Open

TypeError: Cannot call a class as a function #1

skumarcm opened this issue Sep 2, 2021 · 0 comments

Comments

@skumarcm
Copy link

skumarcm commented Sep 2, 2021

Trying to use react-native-gcanvas in a project.
I am getting the following error when trying to run the app on android:
"Can not call a class as a function".

This error is thrown from the file "DOM/Node.js" where it is trying to extend the class "EventTarget" as below:

class Node extends EventTarget(...NODE_EVENTS) {
  constructor(nodeName) {
    super();

EventTarget is a class defined in event-target-shim package.

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