TypeError: process.cwd is not a function

Open
#32 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

Description

vue3 + vite

import { resolve } from 'path-browserify'
resolve(basePath, childpath)
index.js:124  Uncaught (in promise) TypeError: process.cwd is not a function
    at resolve (index.js:124:25)
   ......
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

  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.

More from browserify/path-browserify

All issues in browserify/path-browserify

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.