circular reference cause `inherits()` became empty object
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript, nodejs
- Domain
- backend
Research direction
Start at util.js line 592, linked in the issue, and inspect the circular require involving inherits and util. Update the referenced module path as specified, then verify that requiring util and calling util.inherits no longer encounters an empty export during initialization.
Written by the indexing model from the issue text.
Description
the line below refs to inherits() from inherits module, but inherits module reference back to util module by checking the implementation on util module first, causing the first require('inherits') to returns empty object (default exports is empty object), if then util.inherits() gets call immediately it will throw.
problematic line in question:
https://github.com/browserify/node-util/blame/ef984721db7150f651800e051de4314c9517d42c/util.js#L592
the line needs to be updated to require('inherits/inherits_browser')
- Dominant language
- JavaScript
- Stars
- 255
- Forks
- 93
- PR merge metrics
- No merged PRs in 30d
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.
More from browserify/node-util
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
browserify/node-util#85 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 32/100
browserify/node-util#82 · 4 comments · 3 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
browserify/node-util#60 · 1 reaction ·
-
Webpack 5 Open
Difficulty 3/5 1-2 days Newbie friendliness 30/100
browserify/node-util#57 · 9 comments · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
browserify/node-util#54 · 1 comment ·
All issues in browserify/node-util
Similar issues
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AllTheMods/ATM-10-L#19 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
SignalK/n2k-signalk#345 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
JuliaPluto/PlutoPlotly.jl#72 ·