Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: process.cwd is not a function #32

Open
yoloz opened this issue Jun 30, 2023 · 3 comments · May be fixed by #36
Open

TypeError: process.cwd is not a function #32

yoloz opened this issue Jun 30, 2023 · 3 comments · May be fixed by #36

Comments

@yoloz
Copy link

yoloz commented Jun 30, 2023

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)
   ......
@yoloz
Copy link
Author

yoloz commented Jun 30, 2023

#29 (comment) inject process, but browser err:

Uncaught SyntaxError: The requested module '/@fs/xxx/node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js?v=0ada4f31' does not provide an export named 'default'

@yoloz yoloz closed this as completed Jun 30, 2023
@yoloz yoloz reopened this Jun 30, 2023
@LuoRiWuSheng
Copy link

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)
   ......

you can see me issue, resolved

#34

@yoloz
Copy link
Author

yoloz commented Aug 30, 2023

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)
   ......

you can see me issue, resolved

#34

yeah, i had write a function too, this question want path-browserify support, thanks.

@waynevanson waynevanson linked a pull request Jul 31, 2024 that will close this issue
badeball added a commit to badeball/cypress-cucumber-preprocessor that referenced this issue Sep 25, 2024
This is essentially unmaintained and broken [1].

[1] browserify/path-browserify#32
badeball added a commit to badeball/cypress-cucumber-preprocessor that referenced this issue Sep 25, 2024
This is essentially unmaintained and broken [1].

[1] browserify/path-browserify#32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants