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.

Uncaught TypeError: Right-hand side of 'instanceof' is not an object

See original GitHub issue

Happens 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:closed
  • Created 7 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Acconutcommented, Aug 25, 2016

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.

0reactions
Acconutcommented, Jun 29, 2017

Projects bigger than Uppy/tus aren’t working in Meteor and that hasn’t moved the needle, so it’s unlikely that our adding weight to that issue, will, I’m afraid 😐

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.

Read more comments on GitHub >

github_iconTop 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 >

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