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.

[BUG] overmind-react with webpack5 has error: `process is not defined`

See original GitHub issue

overmind-react is not compatible with webpack v5 since v5 no longer include the polyfill for the Node.js variable (as described here), and would cause a console error:

Uncaught ReferenceError: process is not defined

Here’s the dependencies:

{
  "dependencies": {
    "overmind": "^26.0.0",
    "overmind-react": "^27.0.0",
    "react": "^17.0.1",
    "react-dom": "^17.0.1"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/plugin-transform-react-jsx": "^7.12.7",
    "@webpack-cli/serve": "^1.1.0",
    "babel-loader": "^8.2.2",
    "html-webpack-plugin": "^4.5.0",
    "webpack": "^5.9.0",
    "webpack-cli": "^4.2.0",
    "webpack-dev-server": "^3.11.0"
  }
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
ju1iuscommented, Feb 19, 2021

Hi @christianalfoni, I’m still getting this error w/ overmind-react@28.0.0 : Uncaught ReferenceError: process is not defined This is the offending line: https://github.com/cerebral/overmind/blob/a677abe9223f216dec8342e4edd7e10225d75f68/packages/node_modules/overmind-react/src/index.ts#L20

0reactions
vospascalcommented, May 23, 2021

can you plz release this … cant build my project… webpack 5 been out for ages also node is not always the title … can also be ‘webpack’

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Uncaught ReferenceError: process is not defined
The problem is because you lose window.process variable when React hotloads, and process exists only on node, not the browser. So you should ......
Read more >
Webpack 5 - Uncaught ReferenceError: process is not defined ...
Try to use frontend-compatible modules whenever possible. It's possible to manually add a polyfill for a node.js core module. An error message will...
Read more >
Hypothesis
[2020] Basics of Module Bundlers for web development. Provides a number of uses, most commonly used to compile multiple .js files into a...
Read more >
warning: kite has been deprecated because it is not ... - You.com
Troubleshooting Kite Upload Errors During the process of uploading CSV ... brew install infer Warning: infer has been deprecated because it does not...
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
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