Skip to content

Error not captured: ReferenceError: variable is not defined #158

Open

Description

@axlalvaro

The library is catching the JS errors, but particularly "ReferenceError: variable is not defined" doesn't seem to capture it.

I forced this error by misspelling a variable name and I get this in the console:

<DoorCard
    ref={(ref) => this.doorsRefs = {...this.doorsRefs, [`door-${item.id}`]: ref}}
    door={itemm} // instead of item
    ...

Captura de pantalla 2022-02-10 a las 14 23 25

My code for the exceptions is pretty simple:

const jsExceptionHandler = (error, isFatal) => {
        console.log("ExceptionsHandler", error, isFatal);
};
setJSExceptionHandler(jsExceptionHandler, true);

Activity

  1. changed the title [-]ReferenceError: variable is not defined[/-] [+]Error not captured: ReferenceError: variable is not defined[/+] on Feb 10, 2022
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