Skip to content
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

TSLint issue #88

Open
Jbz797 opened this issue May 24, 2018 · 1 comment
Open

TSLint issue #88

Jbz797 opened this issue May 24, 2018 · 1 comment

Comments

@Jbz797
Copy link

Jbz797 commented May 24, 2018

When i build with Angular CLI, i have this error :

ERROR in node_modules/api-ai-javascript/ts/Request/TTSRequest.ts(17,31): error TS2339: Property 'DEFAULT_TTS_HOST' does not exist on type 'typeof ApiAiConstants'.

To unlock the problem i need to add :
export const DEFAULT_TTS_HOST = ''
in the file : node_modules/api-ai-javascript/ts/ApiAiConstants.ts

@c4ndybar
Copy link

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"
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants