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

fix!: replace process.cwd() with "/" #36

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

waynevanson
Copy link

@waynevanson waynevanson commented Jul 31, 2024

THIS IS A BREAKING CHANGE

process is not a global in the browser and seems like a left over implementation detail when transferred from NodeJS.

There are two options to choose from as solutions:

  1. Throw an error instead of calling process.cwd().
  2. Replace process.cwd() with the root directory "/".

I've chosen the latter because it's the first thing that came to mind, but will happily do the first if that's desired.

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 this pull request may close these issues.

TypeError: process.cwd is not a function Error in browser: process is not defined
1 participant