Skip to content

[bug] App crashing on Chrome extension(Svelte, WXT, and Vite) #4202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
archieOnramp opened this issue Apr 13, 2025 · 2 comments
Open

[bug] App crashing on Chrome extension(Svelte, WXT, and Vite) #4202

archieOnramp opened this issue Apr 13, 2025 · 2 comments
Labels
bug Something isn't working needs review

Comments

@archieOnramp
Copy link

archieOnramp commented Apr 13, 2025

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

@archieOnramp archieOnramp added bug Something isn't working needs review labels Apr 13, 2025
Copy link

linear bot commented Apr 13, 2025

APKT-2683 [bug]

@archieOnramp archieOnramp changed the title [bug] [bug] App crashing on Chrome extension(Svelte, WXT, and Vite) Apr 14, 2025
@sajwanAshish
Copy link

@tomiir @enesozturk please have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review
Projects
None yet
Development

No branches or pull requests

2 participants