question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReferenceError: process is not defined

See original GitHub issue

Describe the bug Using the Uploady component from the provided example throws the following error in console: ReferenceError: process is not defined

To Reproduce Steps to reproduce the behavior:

  1. Set up a react project with javascript/webpack
  2. Add the code from the first example of https://github.com/rpldy/react-uploady.
  3. Visit the app in the browser
  4. See error
    ReferenceError: process is not defined
    at isProduction (isProduction.js:4)
    at devFreeze (devFreeze.js:3)
    at Module../node_modules/@rpldy/life-events/lib/esm/defaults.js (defaults.js:2)
    at __webpack_require__ (bootstrap:19)
    at Module../node_modules/@rpldy/life-events/lib/esm/lifeEvents.js (arro.js:18056)
    at __webpack_require__ (bootstrap:19)
    at Module../node_modules/@rpldy/life-events/lib/esm/index.js (arro.js:18036)
    at __webpack_require__ (bootstrap:19)
    at Module../node_modules/@rpldy/uploader/lib/esm/uploader.js (arro.js:21382)
    at __webpack_require__ (bootstrap:19)

Expected behavior Should see the upload button.

Versions … “@rpldy/upload-button”: “^0.13.0” “@rpldy/upload-drop-zone”: “^0.13.0” “@rpldy/uploader”: “^0.13.0” “@rpldy/uploady”: “^0.13.0” … “react”: “^17.0.1”, “react-bootstrap”: “^1.6.1”,

Chrome

Code Webpack environment is started with NODE_ENV=development webpack -w --mode development.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
yoavnirancommented, Jun 26, 2021

@salomonvh 0.13.2 is out with a fix. Please confirm it works for you

1reaction
salomonvhcommented, Jun 21, 2021

@yoavniran Not right now I will need to create a minimal version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReferenceError: “process is not defined” - GIMTEC
In this case, process is not defined in the browser environment, hence the error. The solution is to remove the reference to process...
Read more >
javascript - Uncaught ReferenceError: process is not defined
Node.js code must be run by the node process, not the browser (the code must run in the server). To run the code,...
Read more >
process is not defined (NOT react-error-overlay ... - GitHub
Using the optional chaining operator with process ( process?.env ) throws a ReferenceError stating that process is not defined.
Read more >
"Uncaught ReferenceError: process is not defined" and the ...
The Uncaught ReferenceError: process is not defined happens when when a non-existent (here: process) variable is referenced .
Read more >
React ReferenceError: process is not defined | bobbyhadz
To solve the "Uncaught ReferenceError: process is not defined" in React, open your terminal in your project's root directory and update the version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found