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 2 months 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