dialogflow / dialogflow-javascript-client

JavaScript Web SDK for Dialogflow
Apache License 2.0
412 stars 173 forks source link

Errors while compiling #90

Open pasupuletisrinath opened 6 years ago

pasupuletisrinath commented 6 years ago

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 commented 6 years ago

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