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: _this_walletAPI.experimental.on is not a function #265

Open
J-Goz opened this issue Dec 24, 2024 · 1 comment
Open

TypeError: _this_walletAPI.experimental.on is not a function #265

J-Goz opened this issue Dec 24, 2024 · 1 comment

Comments

@J-Goz
Copy link

J-Goz commented Dec 24, 2024

Hi there,

Looking for a bit of assistance to understand what I'm doing wrong here..

I imported the Lucid and WalletAPI types using
import { Lucid, WalletApi } from 'lucid-cardano';

And am attempting to use it as such:
this.walletAPI?.experimental.on('accountChange', () => {

However when running my app in browser & trying to change wallets I get the following error: TypeError: _this_walletAPI.experimental.on is not a function..

Would anyone be able to provide a bit of insight on where I'm going wrong with this?

I'm working with Lucid v. 10.9.0

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

2 participants
@J-Goz and others