react-use-downloader icon indicating copy to clipboard operation
react-use-downloader copied to clipboard

ReferenceError: process is not defined (Part II)

Open 9swampy opened this issue 1 year ago • 1 comments

I'm still getting the process is not defined error using 1.2.5.

Implementing akin to how MarcoRS had proposed fixes for me

          still errors when it tries to access process. This worked for me : 
  let debugMode = false;
  try {
    if (process) {
      debugMode = !!process?.env?.REACT_APP_DEBUG_MODE;
    }
  } catch (err) {
    //Your error handling
  }

Originally posted by @MarcosRS in https://github.com/the-bugging/react-use-downloader/issues/17#issuecomment-1936659505

9swampy avatar Apr 05 '24 19:04 9swampy

Pull request: https://github.com/the-bugging/react-use-downloader/pull/21#issue-2228728038

9swampy avatar Apr 05 '24 20:04 9swampy

Thank you man for looking into it and opening the PR! Really appreciate it. @all-contributors please add @9swampy for bug

olavoparno avatar Apr 09 '24 02:04 olavoparno

@olavoparno

I couldn't determine any contributions to add, did you specify any contributions? Please make sure to use valid contribution names.

I've put up a pull request to add @9swampy! :tada:

allcontributors[bot] avatar Apr 09 '24 02:04 allcontributors[bot]

Version 1.2.6 is live

olavoparno avatar Apr 09 '24 02:04 olavoparno