dialogflow-javascript-client icon indicating copy to clipboard operation
dialogflow-javascript-client copied to clipboard

Errors while compiling

Open pasupuletisrinath opened this issue 7 years ago • 1 comments

Im getting errors while im trying to compiling with this module with angular

ERROR in ./node_modules/api-ai-javascript/declarations.d.ts (9,5): Subsequent variable declarations must have the same type. Variable 'speechSynthesis' must be of type 'SpeechSynthesis', but here has type 'any'.

ERROR in ./node_modules/api-ai-javascript/declarations.d.ts (9,5): All declarations of 'speechSynthesis' must have identical modifiers.

ERROR in ./node_modules/api-ai-javascript/ts/XhrRequest.ts (105,19): Cannot find name 'ActiveXObject'.

ERROR in ./node_modules/api-ai-javascript/ts/XhrRequest.ts (106,19): Cannot find name 'ActiveXObject'.

ERROR in ./node_modules/api-ai-javascript/ts/XhrRequest.ts (107,19): Cannot find name 'ActiveXObject'.

ERROR in ./node_modules/api-ai-javascript/ts/Request/TTSRequest.ts (18,37): Property 'AudioContext' does not exist on type 'Window'.

ERROR in ./node_modules/api-ai-javascript/ts/Request/TTSRequest.ts (18,53): Cannot find name 'webkitAudioContext'.

ERROR in ./node_modules/api-ai-javascript/ts/Stream/Processors.ts (7,16): Property 'AudioContext' does not exist on type 'Window'.

ERROR in ./node_modules/api-ai-javascript/ts/Stream/Processors.ts (7,38): Property 'AudioContext' does not exist on type 'Window'.

ERROR in ./node_modules/api-ai-javascript/ts/Stream/Processors.ts (7,54): Cannot find name 'webkitAudioContext'.

ERROR in ./node_modules/api-ai-javascript/ts/Stream/StreamClient.ts (60,20): Property 'AudioContext' does not exist on type 'Window'.

ERROR in ./node_modules/api-ai-javascript/ts/Stream/StreamClient.ts (60,42): Property 'AudioContext' does not exist on type 'Window'.

ERROR in ./node_modules/api-ai-javascript/ts/Stream/StreamClient.ts (60,58): Cannot find name 'webkitAudioContext'.

ERROR in ./node_modules/api-ai-javascript/ts/Stream/StreamClient.ts (62,53): Property 'webkitGetUserMedia' does not exist on type 'Navigator'.

ERROR in ./node_modules/api-ai-javascript/ts/Stream/StreamClient.ts (62,85): Property 'mozGetUserMedia' does not exist on type 'Navigator'.

pasupuletisrinath avatar Jun 20 '18 11:06 pasupuletisrinath

upgraded to 2.0.0-beta.21 and now I don't have any issues.

pasupuletisrinath avatar Jun 20 '18 12:06 pasupuletisrinath