Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: process is not defined #199

Closed
salomonvh opened this issue Jun 21, 2021 · 6 comments
Closed

ReferenceError: process is not defined #199

salomonvh opened this issue Jun 21, 2021 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@salomonvh
Copy link

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.

@yoavniran
Copy link
Collaborator

hey @salomonvh
do you have a repo I can clone and check this issue with?

@salomonvh
Copy link
Author

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

@salomonvh
Copy link
Author

@yoavniran Here: https://github.com/salomonvh/minimal-react-webpack-babel-setup.git in the uploady-test branch. You will see the same error in the console after running npm install and npm start.

@yoavniran
Copy link
Collaborator

thanks @salomonvh for the repro. I see the error. Will look into fixing soon

@yoavniran yoavniran added the bug Something isn't working label Jun 22, 2021
@yoavniran yoavniran self-assigned this Jun 22, 2021
This was referenced Jun 25, 2021
@yoavniran
Copy link
Collaborator

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

@salomonvh
Copy link
Author

It is working now, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants