Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upUncaught ReferenceError: FileReadStream is not defined #160
Comments
This comment has been minimized.
This comment has been minimized.
|
This is a bug. Must have been introduced in the last few days. Looking into it now. |
This comment has been minimized.
This comment has been minimized.
|
I think this was introduced when you corrected the blobToBuffer null callback issue in the seed method. I don't know if this is a proper fix, but here is how I've fixed it:
var FileReadStream = require('filestream/read');
npm install filestream
"filestream": "^2.1.0", This works with browserify. P.S. please correct me about whether doing any of these things is redundant. I tried a lot of things. |
This comment has been minimized.
This comment has been minimized.
|
@clesocles - thanks for debugging this issue. fixed in 19e44f7 and published as 0.11.2. we need to improve the browser test coverage and get it to the level of the node tests, to catch issues like this before they're published. |
I'm running your simple example as is but I keep getting
Uncaught ReferenceError: FileReadStream is not definedWhich comes from inside webtorrent.min.js. I tried with browserify as well and still get the same error.