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

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

Open
axlalvaro opened this issue Feb 10, 2022 · 0 comments
Open

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

axlalvaro opened this issue Feb 10, 2022 · 0 comments

Comments

@axlalvaro
Copy link

axlalvaro commented Feb 10, 2022

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);
@axlalvaro axlalvaro changed the title ReferenceError: variable is not defined Error not captured: ReferenceError: variable is not defined Feb 10, 2022
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