mafintosh / mafintosh/browserify-fs

Undefined is not a function in readable-stream this.once

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.