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