Wagmi connector error exporting

Getting the following error trying to use wagmi-connector v5.0.0.

import { log, WALLET_ADAPTERS, ADAPTER_STATUS, CHAIN_NAMESPACES } from '@web3auth/base';
                               ^^^^^^^^^^^^^^
SyntaxError: Named export 'ADAPTER_STATUS' not found. The requested module '@web3auth/base' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from '@web3auth/base';
const { log, WALLET_ADAPTERS, ADAPTER_STATUS, CHAIN_NAMESPACES } = pkg;

    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:190:5) {
  page: '/'
}

I have the rest of web3Auth dependencies in v7.0.1.

@enrique Thanks for reaching out. Wagmi-connector is still on v6. Our team are working to make it compatible with v7. I will update you once done.

Thanks for your understanding.

2 Likes

Our team have confirmed that this issue is fixed with wagmi connector in v5.0.1. Pls upgrade

1 Like

Thank you for your support. I will upgrade