You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After integrating the Appkit into my Chrome extension(Svelte, WXT, and Vite) using shadow DOM, the app crashes during initialization with the following error:
Failed to import Coinbase Wallet SDK: ReferenceError: Cannot access 'index' before initialization
at client.js:41:89
at async getCoinbaseProvider (client.js:41:53)
at async EthersAdapter.createEthersConfig (client.js:65:38)
at async EthersAdapter.syncConnectors (client.js:168:29)
AppKit:getUniversalProvider - Cannot create provider
TypeError: Ie2.default.init is not a function
at J2.createClient (index.cjs.js:1:36561)
at J2.initialize (index.cjs.js:1:36403)
at J2.init (index.cjs.js:1:33182)
at AppKit.initializeUniversalAdapter (appkit-base-client.js:955:72)
at AppKit.createUniversalProvider (appkit-base-client.js:998:54)
at AppKit.getUniversalProvider (appkit-base-client.js:1005:28)
at AppKit.createUniversalProviderForAdapter (appkit-base-client.js:668:20)
at AppKit.initChainAdapter (appkit-base-client.js:592:20)
at AppKit.initChainAdapter (appkit.js:342:21)
at appkit-base-client.js:596:24
Uncaught (in promise) ReferenceError: Cannot access 'embeddedWallet' before initialization
at async Promise.all (/index 0)
Link to minimal reproducible example
https://drive.google.com/file/d/1UyfTIlEzuxn8SYPfrmDmXaAhiuM9FsOo/view?usp=sharing
Summary
After integrating the Appkit into my Chrome extension(Svelte, WXT, and Vite) using shadow DOM, the app crashes during initialization with the following error:
Failed to import Coinbase Wallet SDK: ReferenceError: Cannot access 'index' before initialization
at client.js:41:89
at async getCoinbaseProvider (client.js:41:53)
at async EthersAdapter.createEthersConfig (client.js:65:38)
at async EthersAdapter.syncConnectors (client.js:168:29)
AppKit:getUniversalProvider - Cannot create provider
TypeError: Ie2.default.init is not a function
at J2.createClient (index.cjs.js:1:36561)
at J2.initialize (index.cjs.js:1:36403)
at J2.init (index.cjs.js:1:33182)
at AppKit.initializeUniversalAdapter (appkit-base-client.js:955:72)
at AppKit.createUniversalProvider (appkit-base-client.js:998:54)
at AppKit.getUniversalProvider (appkit-base-client.js:1005:28)
at AppKit.createUniversalProviderForAdapter (appkit-base-client.js:668:20)
at AppKit.initChainAdapter (appkit-base-client.js:592:20)
at AppKit.initChainAdapter (appkit.js:342:21)
at appkit-base-client.js:596:24
Uncaught (in promise) ReferenceError: Cannot access 'embeddedWallet' before initialization
at async Promise.all (/index 0)
List of related npm package versions
"@reown/appkit": "^1.7.2"
"@reown/appkit-adapter-ethers": "^1.7.2"
"ethers": "^6.13.5"
"wxt": "^0.20.0"
"@wxt-dev/module-svelte": "^2.0.0"
"svelte": "^5.1.16"
Node.js Version
v23.10.0
Package Manager
10.9.2
The text was updated successfully, but these errors were encountered: