react-use-downloader
react-use-downloader copied to clipboard
ReferenceError: process is not defined (Part II)
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
Pull request: https://github.com/the-bugging/react-use-downloader/pull/21#issue-2228728038
Thank you man for looking into it and opening the PR! Really appreciate it. @all-contributors please add @9swampy for bug
@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:
Version 1.2.6 is live