Skip to content

TypeError: Cannot call a class as a function #1

Description

@skumarcm

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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