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

SpeechSynthesis demo code error. #2862

Closed
7 tasks done
adoin opened this issue Mar 13, 2023 · 2 comments
Closed
7 tasks done

SpeechSynthesis demo code error. #2862

adoin opened this issue Mar 13, 2023 · 2 comments

Comments

@adoin
Copy link

adoin commented Mar 13, 2023

Describe the bug

Demo code const stop = () => { speech.stop(); };
reports error "TS2339: Property 'stop' does not exist on type '{ isSupported: Ref ; isPlaying: Ref ; status: Ref ; utterance: ComputedRef ; error: Ref...>; toggle: (value?: boolean | undefined) => void; speak: () => void; }'."
And the entity has no sop function.

Reproduction

https://vueuse.org/core/useSpeechSynthesis/

System Info

System:
    OS: Windows 10 10.0.17763
    CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
    Memory: 14.07 GB / 31.93 GB
  Binaries:
    Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - D:\jsrepo\node_global\yarn.CMD
    npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Internet Explorer: 11.0.17763.2989

Used Package Manager

npm

Validations

@jw-foss
Copy link

jw-foss commented Mar 14, 2023

The stop method was introduced in #2774 at version 9.13.0, what version of Vueuse you are using? Perhaps you are using an older version of Vueuse.

@adoin
Copy link
Author

adoin commented Mar 14, 2023

Core is 9.10.0 component is 9.13.0. I see. Thanks.

@adoin adoin closed this as completed Mar 14, 2023
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