Closed aalmada closed 1 year ago
I can still use wagmi and ignore this error and things work on first glance... but first issue that I encountered is that
useNetwork hook returns no data
would be great if we can get this sorted
This breaks the connector. Currently iterating through all versions of Wagmi since 2 versions ago until I find one that doesn't break... Either the connector needs to be updated or someone needs to denote which range of versions it is compatible with.
UPDATE: I was able to get it to not entirely break by switching wagmi to v0.6.3 (the same in the example), and by adding the socialLoginConfig: {mfaLevel: 'default'}
to the Web3AuthConnector constructor... but now there's no Connect Wallet
option on the Web3Modal.
Can you all test the latest version? socialLoginConfig
should not be required
@chaitanyapotti this error still occurs with wagmi v0.11.2 and @web3auth/web3auth-wagmi-connector v2.1.1.
@wagmi/core latest is v0.9.x and web3auth-wagmi-connector is built against v0.8.x.
That's because we follow the release pattern of rainbowkit which is still dependent on wagmi/core@0.8.x Once they update, we will update this library
Ok, thanks.
On Thu, Feb 9, 2023, 7:37 AM Chaitanya Potti @.***> wrote:
That's because we follow the release pattern of rainbowkit which is still dependent on @.*** Once they update, we will update this library
— Reply to this email directly, view it on GitHub https://github.com/Web3Auth/web3auth-wagmi-connector/issues/12#issuecomment-1424129989, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACJCPFQF66CA6VCKBO7RLLWWTQJJANCNFSM6AAAAAARREE3DY . You are receiving this because you commented.Message ID: @.***>
Hey everyone! I've encouter the same issue. RainbowKit it's already using wagmi 0.9.0. Any predition of when this library is going to be updated??
We will be updating it as soon as possible.
That's great!!
Thanks for the fast response!
@yashovardhan do you have a PR we can follow? Do you have a time estimate here and are there any workarounds?
In the meantime, you can use wagmi library on the previous version.
In the meantime, you can use wagmi library on the previous version.
Thanks for the quick reply @yashovardhan. Still getting the following error rolling back to wagmi 0.5.7
Error: require() of ES Module /Users/benleibowitz/Github/PatientPortal/node_modules/@web3auth/web3auth-wagmi-connector/node_modules/@wagmi/core/dist/index.js from /Users/benleibowitz/Github/PatientPortal/node_modules/@web3auth/web3auth-wagmi-connector/dist/web3authWagmiConnector.cjs.js not supported. Instead change the require of index.js in /Users/benleibowitz/Github/PatientPortal/node_modules/@web3auth/web3auth-wagmi-connector/dist/web3authWagmiConnector.cjs.js to a dynamic import() which is available in all CommonJS modules.
Any sense of what's happening here @yashovardhan? Sorry to bug you - this is pressing on our side
@benjileibo can you check the wagmi version in our sample apps and use that version.
https://github.com/Web3Auth/examples/tree/main/wagmi-connector
In the meantime, you can use wagmi library on the previous version.
Thanks for the quick reply @yashovardhan. Still getting the following error rolling back to wagmi 0.5.7
Error: require() of ES Module /Users/benleibowitz/Github/PatientPortal/node_modules/@web3auth/web3auth-wagmi-connector/node_modules/@wagmi/core/dist/index.js from /Users/benleibowitz/Github/PatientPortal/node_modules/@web3auth/web3auth-wagmi-connector/dist/web3authWagmiConnector.cjs.js not supported. Instead change the require of index.js in /Users/benleibowitz/Github/PatientPortal/node_modules/@web3auth/web3auth-wagmi-connector/dist/web3authWagmiConnector.cjs.js to a dynamic import() which is available in all CommonJS modules.
Also getting this error and I am following the example repo you linked^ same versions.
Please update to 3.0.0 and report if you face any issues
@chaitanyapotti this issue has been resolved for me with 3.0.0 and wagmi 0.11.x and 0.12.x.
Awesome @ryanberckmans thanks for letting us know. Closing this issue.
@yashovardhan great thanks. I am going to hijack your attention here and request that you investigate this issue https://github.com/Web3Auth/web3auth-wagmi-connector/issues/45 as it is preventing me from signing ordinary erc20 transfers in dev with chainId param set.
I have in my
packages.json
the following:I added the
Web3AuthConnector
as shown in the READ.ME but I'm getting the following compilation error:I see that you only support
"@wagmi/core": "^0.5.7"
Do you plan to support a newer version any time soon?