Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Error using Webpack:Uncaught ReferenceError: process is not defined #70

Open
zhaowei0981 opened this issue Dec 3, 2021 · 1 comment

Comments

@zhaowei0981
Copy link

zhaowei0981 commented Dec 3, 2021

Uncaught ReferenceError: process is not defined at eval (util.js:109) at Object../node_modules/util/util.js (index.js?t=1638501186101:2313) at __webpack_require__ (index.js?t=1638501186101:2657) at eval (assertion_error.js:35) at Object../node_modules/assert/build/internal/assert/assertion_error.js (index.js?t=1638501186101:954) at __webpack_require__ (index.js?t=1638501186101:2657) at eval (assert.js:36) at Object../node_modules/assert/build/assert.js (index.js?t=1638501186101:943) at __webpack_require__ (index.js?t=1638501186101:2657) at eval (index.js:9)

@zhaowei0981
Copy link
Author

var debugs = {};
var debugEnvRegex = /^$/;

if (process.env.NODE_DEBUG) {
var debugEnv = process.env.NODE_DEBUG;
debugEnv = debugEnv.replace(/[|\{}()[]^$+?.]/g, '\$&')
.replace(/*/g, '.*')
.replace(/,/g, '$|^')
.toUpperCase();
debugEnvRegex = new RegExp('^' + debugEnv + '$', 'i');
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant