orca-so / typescript-sdk

The Orca SDK contains a set of simple to use APIs to allow developers to integrate with the Orca platform.
155 stars 49 forks source link

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

Open zhaowei0981 opened 2 years ago

zhaowei0981 commented 2 years ago

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 commented 2 years ago

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'); }