FuelLabs / fuel-connectors

https://connectors.fuel.network
Apache License 2.0
80 stars 36 forks source link

Error: ‘@wagmi/core’ does not provide an export named ‘extractRpcUrls’ in fuel/connectors v0.9.0 #181

Open helciofranco opened 2 months ago

helciofranco commented 2 months ago

A few people are encountering an issue with @fuels/connectors v0.9.0 in their repository, where the error message “The requested module ‘@wagmi/core’ does not provide an export named ‘extractRpcUrls’” is displayed.

The issue does not occur with the v0.5 connector version.

A separate repro repository has been created to assist in debugging: fuels-connectors-deps-check Thanks @Dhaiwat10

LuizAsFight commented 2 months ago

one option is to make the problematic dependencies a peerDependencies so we make sure the user is on the right version

petertonysmith94 commented 2 months ago

We're importing injected from @wagmi/core here, however, the documentation say's this should be imported from @wagmi/connectors.

https://github.com/FuelLabs/fuel-connectors/blob/e02834af9e3d68acdc1d8223e3cc18af5d889030/packages/walletconnect-connector/src/web3Modal.ts#L1

By installing the @wagmi/connectors dependency - this resolved the issue from our end.