You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an ejected CRA with a custom webpack loader. I use swc-loader instead of babel-loader for faster compile time. Actually, I add @walletconnect/web3-provider into my app. I got an error to include { util: require.resolve('util/') } into resolve.fallback webpack configuration. After that error was fixed, I got the error again like this
ERROR in ./node_modules/util/util.js
Module build failed (from ./node_modules/swc-loader/src/index.js):
Error:
× the name `fn` is defined multiple times
╭─[/media/data/SIDE_PROJECTS/webpack-react-ts-inversify-web-worker/node_modules/util/util.js:617:5]
617 │ var fn = original[kCustomPromisifiedSymbol];
· ─┬
· ╰── previous definition of `fn` here
618 │ if (typeof fn !== 'function') {
619 │ throw new TypeError('The "util.promisify.custom" argument must be of type Function');
620 │ }
621 │ Object.defineProperty(fn, kCustomPromisifiedSymbol, {
622 │ value: fn, enumerable: false, writable: false, configurable: true
623 │ });
624 │ return fn;
625 │ }
626 │
627 │ functionfn() {
· ─┬
· ╰── `fn` redefined here
╰────
could you please refactor the variable/function declaration name in order to solve my problem?
I have an ejected CRA with a custom webpack loader. I use
swc-loader
instead ofbabel-loader
for faster compile time. Actually, I add@walletconnect/web3-provider
into my app. I got an error to include{ util: require.resolve('util/') }
intoresolve.fallback
webpack configuration. After that error was fixed, I got the error again like thiscould you please refactor the variable/function declaration name in order to solve my problem?
node-util/util.js
Line 617 in a292d8a
node-util/util.js
Line 627 in a292d8a
The text was updated successfully, but these errors were encountered: