Skip to content

TypeError: process.cwd is not a function #32

Open

Description

@yoloz

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

Activity

  1. yoloz commented on Jun 30, 2023

    @yoloz
    Author

    #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'
    
  2. reopened this on Jun 30, 2023
  3. LuoRiWuSheng commented on Aug 30, 2023

    @LuoRiWuSheng

    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

  4. yoloz commented on Aug 30, 2023

    @yoloz
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions