walletconnect-monorepo icon indicating copy to clipboard operation
walletconnect-monorepo copied to clipboard

WalletConnect + React, webpack issues

Open nnzo opened this issue 3 years ago • 2 comments

Describe the bug Using create-react-app and importing the @walletconnect/web3-provider package, the react development environment fails to start.

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "https": require.resolve("https-browserify") }'
        - install 'https-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "https": false }

webpack compiled with 2 errors and 94 warnings

nnzo avatar Jul 04 '22 11:07 nnzo

I am facing the same issue. Did you find any fix for this?

shubhch32 avatar Jul 26 '22 14:07 shubhch32

This issue has been discussed below :)

https://github.com/WalletConnect/walletconnect-monorepo/issues/584#issue-975121859

hjhjdev avatar Aug 31 '22 06:08 hjhjdev