TypeError: Right-hand side of 'instanceof' is not an object
See original GitHub issueπ bug report
Affected Package
The issue is caused by package @angular/zone.jsIs this a regression?
Yes, the previous version in which this bug was not present was: ....Description
instanceof
is not safe operation, so if you monkeypatch such substantial method as Object.prototype.toString
, you have to use tryβ¦catch
π¬ Minimal Reproduction
https://stackblitz.com/...π₯ Exception or Error
TypeError: Right-hand side of 'instanceof' is not an object
π Your Environment
Angular Version:
Anything else relevant?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (6 by maintainers)
Top 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 callable - Moralis Forum
I am getting a following error: TypeError: Right-hand side of 'instanceof' is not callable. My deps: "dependencies": { "moralis": "1.11.0", "next": "12.1.5"Β ...
Read more >Error: Right-hand side of 'instanceof' is not callable | Vue Forums
Error: Right-hand side of 'instanceof' is not callable Β· 1. Share the code snippet of ListView component. Β· 2. Whether you have rendered...
Read more >TypeError: Right-hand side of 'instanceof' is not an ... - Laracasts
If it has been updated, is should call a method called 'addItem', that will add the item to my editor. However, for some...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rifler, I can reproduce the issue.
And about the fix, use
try/catch
will impact the performance and also swallow the error. So the recommend fix iscould you update the PR? thanks!
Hi @rifler, thanks for providing additional information.
Iβm adding @JiaLiPassion to this thread to get his opinion from the ZoneJS standpoint (he should also have an access to reopen PR #38350 once the root cause is identified).
Thank you.