Error in browser: `process` is not defined
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- web-dev
Research direction
Start in index.js at line 124 and reproduce path.resolve("tmp", "..") in a browser environment. Determine the intended browser-safe behavior when cwd is undefined; done means this call no longer raises a process is not defined error in the browser.
Written by the indexing model from the issue text.
Description
When calling `path.resolve("tmp", ".."), this branch is triggered, causing an error in the browser (line 124 in index.js):
if (cwd === undefined)
cwd = process.cwd();
path = cwd;
Uncaught ReferenceError: process is not defined
I think this error should be caught.
- Dominant language
- JavaScript
- Stars
- 192
- Forks
- 54
- 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/path-browserify
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
browserify/path-browserify#35 · 1 comment · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
browserify/path-browserify#34 · 5 comments · 3 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
browserify/path-browserify#32 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
browserify/path-browserify#31 · 1 comment · 3 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in browserify/path-browserify
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·