Open Jbz797 opened 6 years ago
I'm not even sure this code that's causing the compilation failure is even used. For anyone else experiencing this issue, I was able to get around the compilation errors by excluding the file from compilation. Update your tsconfig.json
file with the following.
I'm using Angular 6, so you may need to alter this based on your configuration.
{
"exclude": [
"./../node_modules/api-ai-javascript/ts/Request/TTSRequest.ts"
],
"include": [
"./../node_modules/api-ai-javascript/ts/**/*",
"./../node_modules/api-ai-javascript/index.ts"
]
}
When i build with Angular CLI, i have this error :
To unlock the problem i need to add :
export const DEFAULT_TTS_HOST = ''
in the file : _nodemodules/api-ai-javascript/ts/ApiAiConstants.ts