Skip to content
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

TypeError: off is not a function #954

Open
umaid56 opened this issue Apr 29, 2024 · 2 comments
Open

TypeError: off is not a function #954

umaid56 opened this issue Apr 29, 2024 · 2 comments

Comments

@umaid56
Copy link

umaid56 commented Apr 29, 2024

I get this error whenever I use the Solana wallet adapter package in my Next.js project. Every time I run the project, I encounter this error initially. However, after refreshing the page, the wallet connection works fine, and transitions through Phantom also work well. But whenever I stop and restart the server on localhost, I consistently encounter this error again.

Unhandled Runtime Error
TypeError: off is not a function

Call Stack
StandardWalletAdapter.destroy
webpack-internal:/node_modules/@solana/wallet-standard-wallet-adapter-react/node_modules/@solana/wallet-standard-wallet-adapter-base/lib/esm/adapter.js (102:1)
eval
webpack-internal:/node_modules/@solana/wallet-standard-wallet-adapter-react/lib/esm/useStandardWalletAdapters.js (24:14)
Array.forEach
<anonymous>
eval
webpack-internal:/node_modules/@solana/wallet-standard-wallet-adapter-react/lib/esm/useStandardWalletAdapters.js (24:14)

@ronypk999
Copy link

ronypk999 commented May 4, 2024

This is also happening with me..
Screenshot from 2024-05-04 20-34-13

besides another error encounters often with object.setToggle when i click the pay button while phantom connecetd.

Screenshot from 2024-05-04 20-41-31

These bugs must be solved quickly

@mcintyre94
Copy link
Collaborator

Can you provide source code or a link to a hosted example of this please? I don't see this on our hosted example project: https://anza-xyz.github.io/wallet-adapter/example/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants