Wallet-connect-v1 package errors on import

Please provide the following details too when asking for help in this category:

Our app is currently working great when using the @web3auth/metamask-adapter package. However, we are trying to add in support for WalletConnect as well and on installing @web3auth/wallet-connect-v1-adapter, we get the following error:

Module not found: Can't resolve '@walletconnect/client' in '/Users/sumedhb/ws/delphi/packages/frontend/node_modules/@web3auth/wallet-connect-v1-adapter/dist'

It looks like there might be a missing peer dependency for this package? On installing the ‘@walletconnect/client’ package manually, we get the error in the screenshot.

This error occurs during building the app itself with the package installed, and trying to initialize Web3Auth with both adapters:

const web3Auth = new Web3AuthCore({
	clientId,
	chainConfig,
});

const metamaskAdapter = new MetamaskAdapter({
	clientId,
});
const walletConnectV1Adapter = new WalletConnectV1Adapter({
	adapterSettings: {
		bridge: 'https://bridge.walletconnect.org',
	},
	clientId,
	sessionTime: 3600, // 1 day in seconds
});
web3Auth?.configureAdapter(metamaskAdapter);
web3Auth?.configureAdapter(walletConnectV1Adapter);

Would really appreciate help on this issue since I’m not sure there is anything we can change in code on our side to unblock this, since the error is sourced from installing the @web3auth/wallet-connect-v1-adapter package itself.

Hey @sumedhb1995

Sorry for the delayed reply. This error was fixed in the subsequent releases. Please upgrade your package and do a clean install.

Feel free to let us know if that doesn’t work.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.