v7 is out but wagmi connector still relays on v6 please update
Thanks for your feedback.
with new update i get this error
Internal server error: 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) (x4)
file:///Users/screw/projects/gamblr/gamblronbase/node_modules/@web3auth/web3auth-wagmi-connector/dist/web3authWagmiConnector.esm.js:3
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)
here are my package versions
"@web3auth/base": "^7.0.1",
"@web3auth/ethereum-provider": "^7.0.1",
"@web3auth/modal": "^7.0.1",
"@web3auth/no-modal": "^7.0.1",
"@web3auth/openlogin-adapter": "^7.0.1",
"@web3auth/torus-wallet-connector-plugin": "^7.0.1",
"@web3auth/web3auth-wagmi-connector": "^5.0.0",
Our team mentioned wagmi-connector is being updated to V7 and will be released soon. You will receive an update once available.
Thanks for your understanding.
Please update the peer dependencies as shown below:
"peerDependencies": {
"@wagmi/core": "^1.x",
"@web3auth/base": "^7.x",
"@web3auth/modal": "^7.x",
"@web3auth/no-modal": "^7.x",
"@web3auth/openlogin-adapter": "^7.x",
"viem": "^1.x"
},
i have those package versions and still getting the error
"@wagmi/core": "^1.3.9",
"@web3auth/base": "^7.0.1",
"@web3auth/ethereum-provider": "^7.0.2",
"@web3auth/modal": "^7.0.2",
"@web3auth/no-modal": "^7.0.1",
"@web3auth/openlogin-adapter": "^7.0.1",
"@web3auth/torus-wallet-connector-plugin": "^7.0.1",
"@web3auth/web3auth-wagmi-connector": "^5.0.0",
"@web3modal/ethereum": "^2.7.1",
"@web3modal/html": "^2.7.1",
"viem": "^1.10.13",
these are my deps this is the error i get at runtime
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)
error is coming from this file /node_modules/@web3auth/web3auth-wagmi-connector/dist/web3authWagmiConnector.esm.js:3
Please help us resolve this issue
The latest version of wagmi connector is made for @wagmi/core
version 1.4.1
. It supports the viem integration with wagmi. Can you check your package.json file
the same error is still there @wagmi/core version shouldn’t matter either way when its a CommonJS issue
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.