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

Property 'on' does not exist on type 'ListenLiveClient' since 3.4 #309

Closed
noxan opened this issue Jul 5, 2024 · 4 comments · Fixed by #311
Closed

Property 'on' does not exist on type 'ListenLiveClient' since 3.4 #309

noxan opened this issue Jul 5, 2024 · 4 comments · Fixed by #311

Comments

@noxan
Copy link
Contributor

noxan commented Jul 5, 2024

Since upgrading to 3.4 we receive the following typescript warning: Property 'on' does not exist on type 'ListenLiveClient'.ts(2339). Worked fine with 3.3.x and before.

Code is basically the the live audio example from the readme, see https://stackblitz.com/edit/vitejs-vite-rxpylf?file=src%2Fmain.ts

Screenshot 2024-07-05 at 3 40 30 PM
@lukeocodes
Copy link
Contributor

I can't see how it's possible. All the tests and examples work. I'll look into it immediately

@noxan
Copy link
Contributor Author

noxan commented Jul 5, 2024

Not sure either sadly, thanks for investigating :)

orgads added a commit to orgads/deepgram-js-sdk that referenced this issue Jul 8, 2024
@orgads
Copy link
Contributor

orgads commented Jul 8, 2024

The import is wrong. See #311.

@mbarretol
Copy link

I am still getting this error in 3.5.

error TS2576: Property 'on' does not exist on type 'ListenLiveClient'. Did you mean to access the static member 'ListenLiveClient.on' instead?

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

Successfully merging a pull request may close this issue.

4 participants