FuelLabs / fuel-connectors

https://connectors.fuel.network
Apache License 2.0
81 stars 37 forks source link

Wagmi dependency conflict with legacy project #426

Open jincan39 opened 2 days ago

jincan39 commented 2 days ago

This package seems can't work friendly with legacy project which uses packages "wagmi": "^2.10.10" and "viem": "^2.17.3", any idea for fixing this? Regards. @LuizAsFight @nelitow @luizstacio

https://github.com/Manta-Network/react-dapp-starter/tree/chore/fuel

LuizAsFight commented 1 day ago

@jincan39 this integration to connect ETH wallets in fuel is a very sensitive feature, easy to break and have problems. because of this we are strict in the version of the packages, aiming to make sure it works smooth.

I recommend you updating your package versions

jincan39 commented 17 hours ago

@LuizAsFight Thank you for your response. I've upgraded the wagmi version to match @fuel/connectors's dependency, but the issue persists. This compatibility issue affects all EVM projects since @fuel/connectors's wagmi dependency is not properly isolated (in a sandbox).

The two packages cannot coexist at the moment, and I had to remove @fuel/connectors's dependencies to get the project running.