Uncaught TypeError: Right-hand side of 'instanceof' is not an object
See original GitHub issueHappens in the new version tus-js-client@1.2.0
:
source.js:209
if (input instanceof _fs.ReadStream && input.path != null) {
return new FileSource(input);
}
To reproduce just create a tus upload from the example using latest version 1.2.0
. In my case input is: input = Blob {size: 122, type: "image/svg+xml"}, chunkSize = Infinity
.
Live example: http://requirebin.com/?gist=93bfd8529d983aaac9cafb638af93a88
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
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 >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 >Right-hand side of 'instanceof' is not an object · Issue #38361 ...
Description instanceof is not safe operation, so if you monkeypatch. ... TypeError: Right-hand side of 'instanceof' is not an object #38361.
Read more >TypeError: Right-hand side of 'instanceof' is not an object
When I try to login, I get this error TypeError: Right-hand side of 'instanceof' is not an object Following the stack trace, 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 >
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 Free
Top 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
Thank you for reporting and also including this test case which made debugging it a really quick journey. v1.2.1 which includes the fix should be available on NPM now.
That’s right. The problem is that I don’t see a practicable solution to have we could fix this in tus-js-client. The approach @payner35 chose (forking and modifying to just work in the browser) is not an option for us as tus-js-client must also work using Node.js.