FuelLabs/fuel-connectors

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

helciofranco opened this issue · 2 comments

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

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

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

import { http, type Config, createConfig, injected } from '@wagmi/core';

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