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
First want to mention that my team and I ❤️ useDApp. nice work!
Describe the bug
We ran into issues using the @usedapp/wallet-connect-v2-connector package while upgrading to WalletConnect v2. We included the connector as a dependency, but saw the below build error:
10:27:40.718 | Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/buildhome/repo/node_modules/@web3modal/standalone/dist/index.es.js from /opt/buildhome/repo/node_modules/@usedapp/wallet-connect-v2-connector/dist/cjs/src/index.js not supported.
10:27:40.718 | Instead change the require of index.es.js in /opt/buildhome/repo/node_modules/@usedapp/wallet-connect-v2-connector/dist/cjs/src/index.js to a dynamic import() which is available in all CommonJS modules.
10:27:40.718 | at Object.<anonymous> (/opt/buildhome/repo/node_modules/@usedapp/wallet-connect-v2-connector/dist/cjs/src/index.js:45:20)
Looking into this, I did see @web3modal/standalone is a dependency of the walletConnectv2 connector, which according to npm is deprecated. should this possibly use @walletconnect/modal instead?
@usedapp/wallet-connect-v2-connector@1.0.3 is now available on npm. Could you please try it out and let me know if this solves the problem? I replaced @web3modal/standalone with @walletconnect/modal as @cbonaco1 suggested.
First want to mention that my team and I ❤️ useDApp. nice work!
Describe the bug
We ran into issues using the
@usedapp/wallet-connect-v2-connector
package while upgrading to WalletConnect v2. We included the connector as a dependency, but saw the below build error:Looking into this, I did see
@web3modal/standalone
is a dependency of the walletConnectv2 connector, which according to npm is deprecated. should this possibly use@walletconnect/modal
instead?To Reproduce
Here is our useDApp config:
Then from our own modal, onClick of the WalletConnect button, we have just the following:
Software versions
@usedapp/core@1.2.10
@usedapp/wallet-connect-v2-connector@1.0.2
Any guidance here is appreciated 🙏
The text was updated successfully, but these errors were encountered: