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
Description:
I am currently facing multiple issues while trying to integrate WalletConnect into my React application. Despite following the documentation and multiple attempts, errors keep appearing, preventing successful integration.
Follow the setup instructions from the WalletConnect documentation.
Attempt to start the application.
Errors Encountered:
Module '"@wagmi/core"' has no exported member 'createClient'.
Cannot find module 'viem/providers/public' or its corresponding type declarations.
Property 'provider' does not exist on type '{ readonly chains: Chain[]; readonly publicClient: ({ chainId }: { chainId?: number | undefined; }) => PublicClient; readonly webSocketPublicClient: ({ chainId }: { ...; }) => WebSocketPublicClient<...> | undefined; }'.
Type 'import("c:/Users/User/wallet-connect-demo/node_modules/@wagmi/chains/dist/index").Chain' is not assignable to type 'import("c:/Users/User/wallet-connect-demo/node_modules/@wagmi/core/node_modules/@wagmi/chains/dist/index").Chain'.
Only a void function can be called with the 'new' keyword.
Object literal may only specify known properties, and 'accentColor' does not exist in type 'ConfigCtrlState & ThemeCtrlState & { ethereumClient?: EthereumClient | undefined; }'.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description:
I am currently facing multiple issues while trying to integrate WalletConnect into my React application. Despite following the documentation and multiple attempts, errors keep appearing, preventing successful integration.
Environment:
Node.js version: v20.15.1
npm version: 10.7.0
React version: 18.3.1
Web3Modal version: 2.7.1
Wagmi version: 1.1.1
Viem version: 1.0.2
Steps to Reproduce:
Create a new React application using create-react-app.
Install dependencies using:
npm install @web3modal/react @web3modal/ethereum @wagmi/core @wagmi/chains @tanstack/react-query viem --legacy-peer-deps
Follow the setup instructions from the WalletConnect documentation.
Attempt to start the application.
Errors Encountered:
Code Snippets:
web3modalConfig.ts:
App.tsx:
export default App;
Additional Notes:
I have tried multiple versions of the dependencies and followed the documentation closely, but the errors persist.
I have also attempted various suggestions found in community discussions and GitHub issues without success.
Any guidance or assistance to resolve these issues would be greatly appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions