browserify / browserify/path-browserify

TypeError: process.cwd is not a function

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

Description

vue3 + vite

```js
import { resolve } from 'path-browserify'
resolve(basePath, childpath)
```

```log
index.js:124 Uncaught (in promise) TypeError: process.cwd is not a function
at resolve (index.js:124:25)
......
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Vue 3 + Vite example that imports path-browserify and calls resolve(basePath, childpath). Inspect index.js at the reported resolve location, line 124, and determine why process.cwd is not callable in the browser bundle; done means the same call no longer throws the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vite
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.