0

Package @kamiazya/ngx-speech-recognition

Missing Types: SpeechGrammar, SpeechGrammarList, SpeechRecognition, SpeechRecognitionErrorEvent, SpeechRecognitionEvent, webkitSpeechGrammarList, webkitSpeechRecognition, webkitSpeechRecognitionEvent

Error

TS2304: Cannot find name 'SpeechRecognitionError'.

`ERROR in node_modules/@kamiazya/ngx-speech-recognition/lib/service/speech-recognition.token.d.ts: 16:73 - error TS2304: Cannot find name 'SpeechRecognitionError'.

1 Answer 1

0

Issue

TypeScript 4.4 libdom changes

https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1029

Solution

npm install --save @types/dom-speech-recognition

https://www.npmjs.com/package/@types/dom-speech-recognition

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.