-
Notifications
You must be signed in to change notification settings - Fork 173
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
ERROR in node_modules/api-ai-javascript/declarations.d.ts(9,5) #99
Comments
Same error here |
with typescript 3.1.2 and angular 7.0.0, error:
|
Hi, I had a similar issue with I've found out its due to conflicting type definitions for One workaround is to avoid importing the library via its index.ts (which has So in your code:
in your tsconfig.json (only relevant parts):
The proper solution i think, would be the project's I can test that and submit a PR if you agree with this solution, @dialogflow |
@xmlking Hey I have the same error, did you figure out a solution? |
@abhinavbhandari did you try out my solution? |
I patched it using "@xmlking/api-ai-javascript": "^2.0.0-beta.22", until this lib is fixed. |
Hi, |
btw, @tinesoft workaround worked for me. Thanks! |
@tinesoft Hey yes I did, it didn't work but I will revisit it later and possibly ask a question later! |
I am facing the same issue still its raising the same issue.I tried it. All declarations of 'stream' must have identical modifiers api-ai-javascript - Dialogflow |
I declared stream as readonly in declarations.d.ts which worked for me. |
i used import { ApiAiClient } from 'api-ai-javascript/es6/ApiAiClient' instead of |
Hi, Anyone please help me !!!!!! I'm getting an error tsconfig.json{ chat.service.tsimport { Injectable } from '@angular/core'; @Injectable({ readonly token = environment.dialogflow.angularBot; constructor() { talk(){ NOTE: If you know how to solve this issue contact me (+91 8681841713) I'm also available in WhatsApp Thanks in Advance |
Had same issue with Angular 11.1.1 and Typescript 4.1.3..I tried every method above ,but still error continues. |
Hey did you manage to get help? |
I am trying to use dialogflow in my angular 6 application. but got an error:
ERROR in node_modules/api-ai-javascript/declarations.d.ts(9,5): error TS2687: All declarations of 'speechSynthesis' must have identical modifiers.
node_modules/api-ai-javascript/declarations.d.ts(9,5): error TS2717: Subsequent property declarations must have the same type. Property 'speechSynthesis' must be of type 'SpeechSynthesis', but here has type 'any'.
node_modules/api-ai-javascript/ts/Request/TTSRequest.ts(18,37): error TS2339: Property 'AudioContext' does not exist on type 'Window'.
node_modules/api-ai-javascript/ts/Request/TTSRequest.ts(18,53): error TS2304: Cannot find name 'webkitAudioContext'.
node_modules/api-ai-javascript/ts/Stream/Processors.ts(7,16): error TS2339: Property 'AudioContext' does not exist on type 'Window'.
node_modules/api-ai-javascript/ts/Stream/Processors.ts(7,38): error TS2339: Property 'AudioContext' does not exist on type 'Window'.
node_modules/api-ai-javascript/ts/Stream/Processors.ts(7,54): error TS2304: Cannot find name 'webkitAudioContext'.
node_modules/api-ai-javascript/ts/Stream/StreamClient.ts(60,20): error TS2339: Property 'AudioContext' does not exist on type 'Window'.
node_modules/api-ai-javascript/ts/Stream/StreamClient.ts(60,42): error TS2339: Property 'AudioContext' does not exist on type 'Window'.
node_modules/api-ai-javascript/ts/Stream/StreamClient.ts(60,58): error TS2304: Cannot find name 'webkitAudioContext'.
node_modules/api-ai-javascript/ts/Stream/StreamClient.ts(62,53): error TS2339: Property 'webkitGetUserMedia' does not exist on type 'Navigator'.
node_modules/api-ai-javascript/ts/Stream/StreamClient.ts(62,85): error TS2339: Property 'mozGetUserMedia' does not exist on type 'Navigator'.
node_modules/api-ai-javascript/ts/XhrRequest.ts(105,19): error TS2304: Cannot find name 'ActiveXObject'.
node_modules/api-ai-javascript/ts/XhrRequest.ts(106,19): error TS2304: Cannot find name 'ActiveXObject'.
node_modules/api-ai-javascript/ts/XhrRequest.ts(107,19): error TS2304: Cannot find name 'ActiveXObject'.
any solution?
The text was updated successfully, but these errors were encountered: