browserify / browserify/path-browserify

Error in browser: `process` is not defined

Open
#29 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
192
Forks
54
PR merge metrics
No merged PRs in 30d

Description

When calling `path.resolve("tmp", ".."), this branch is triggered, causing an error in the browser (line 124 in index.js):

```js
if (cwd === undefined)
cwd = process.cwd();
path = cwd;
```

```
Uncaught ReferenceError: process is not defined
```

I think this error should be caught.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.