question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Right-hand side of 'instanceof' is not an object

See original GitHub issue

I am trying to run this module but i am getting an error, Right-hand side of 'instanceof' is not an object and i had to remove this line to make it work again:

 if (target instanceof Date  || target instanceof Error) {
            throw new Error(`${target} found to be one of a on-observable types`);
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gulleryacommented, Sep 17, 2021

Closing this one, please reopen if any new info becomes available.

1reaction
gulleryacommented, Sep 4, 2021

Babel is a good place to look at - probably your transpilation target goes too far back or something like this.

Anyway, those lines are important 😃, so I’d suggest to have it working with them.

Let me know if you find anything or, please, close the issue if will become not relevant.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: invalid 'instanceof' operand 'x' - JavaScript | MDN
The JavaScript exception "invalid 'instanceof' operand" occurs when the right-hand side operands of the instanceof operator isn't used with ...
Read more >
How to fix "TypeError: Right-hand side of 'instanceof' is not ...
I tried to check the type of context whether it is an instance of Context, which is in another file, but node js...
Read more >
Right-hand side of 'instanceof' is not an object · Issue #38361 ...
bug report Affected Package The issue is caused by package @angular/zone.js Is this a regression? Yes, the previous version in which this ...
Read more >
Errors: Invalid Right Hand Side Instanceof Operand - JavaScript
The JavaScript exception "invalid 'instanceof' operand" occurs when the right-hand side operands of the instanceof operator isn't used with ...
Read more >
right-hand side of 'instanceof' is not an object - Nightbot
I'm making a command where it will display a random block had been placed, but instead of that, it shows “right-hand side of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found