kamiazya / ngx-speech-recognition

Angular 5+ speech recognition service (based on browser implementation such as Chrome).
https://ngx-speech-recognition.stackblitz.io/
MIT License
25 stars 17 forks source link

Cannot find name 'SpeechRecognitionError' #573

Open vishalsingh119 opened 4 years ago

vishalsingh119 commented 4 years ago

Hi,

I am facing this issue of ng serve or on ng build. node_modules/@kamiazya/ngx-speech-recognition/lib/speech-recognition.config.d.ts:16:20 - error TS2304: Cannot find name 'SpeechRecognitionError'.

Any idea about this issue.

m3ta113 commented 4 years ago

Hi, happens to me right after my Angular 9 migration.

Angular 9 is in the pipe for this package ?

rajeshkumaryadavdotcom commented 4 years ago

This is happening with me on angular 9 too, I am waiting for this thread to be answered but as a workaround just replace this word to Event and you can work ahead without error.

gvsakhil commented 4 years ago

Its working fine for me in Angular9

"@angular/animations": "~9.0.5",
    "@angular/common": "~9.0.5",
    "@angular/compiler": "~9.0.5",
    "@angular/core": "~9.0.5",
    "@angular/forms": "~9.0.5",
    "@angular/platform-browser": "~9.0.5",
    "@angular/platform-browser-dynamic": "~9.0.5",
    "@angular/router": "~9.0.5",
    "@kamiazya/ngx-speech-recognition": "^0.4.3",
    "rxjs": "~6.5.4",
    "tslib": "^1.10.0",
    "zone.js": "~0.10.2"
sam17896 commented 4 years ago

same issue with me on angular 9

sam17896 commented 4 years ago

Its working fine for me in Angular9

"@angular/animations": "~9.0.5",
    "@angular/common": "~9.0.5",
    "@angular/compiler": "~9.0.5",
    "@angular/core": "~9.0.5",
    "@angular/forms": "~9.0.5",
    "@angular/platform-browser": "~9.0.5",
    "@angular/platform-browser-dynamic": "~9.0.5",
    "@angular/router": "~9.0.5",
    "@kamiazya/ngx-speech-recognition": "^0.4.3",
    "rxjs": "~6.5.4",
    "tslib": "^1.10.0",
    "zone.js": "~0.10.2"

It was working fine for me after i upgraded to 9.1.9 its breaks