mafintosh / mafintosh/browserify-fs
Undefined is not a function in readable-stream this.once
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 188
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
Hey! I'm not sure if this bug belongs here, but if I do:
npm i browserify browserify-fs through2 beefy --save
and have a file like test.js:
var fs = require('browserify-fs')
var through = require('through2')
var t = through()
When I run beefy or testling I get in any readable-stream module the error:
Uncaught TypeError: undefined is not a function in _stream_duplex.js at line 71:
this.once('end', onend);
This error doesn't occur If I don't use browserify-fs or if I use and old version of browserify like 3.6.41.
My versions in package.json are:
"dependencies": {
"beefy": "^2.1.0",
"browserify": "^5.10.0",
"browserify-fs": "^1.0.0",
"through2": "^0.6.1"
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported test.js dependency setup and reproduce the failure using beefy or testling. Inspect readable-stream/_stream_duplex.js at line 71 and compare behavior with browserify 3.6.41; done means the example runs without the undefined-function error when using the reported dependency versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100