Skip to content

Typescript compilation error #105

@ghost

Description

I using Angular 6 and after installing "api-ai-javascript": "^2.0.0-beta.14", I get the following errors when attempting ng serve or ng build:
bug

Also I add api-ai-javascript index.ts to my tsconfig files include (tsconfig.app.json and tsconfig.spec.json ).

tsconfig.app.json
{"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"baseUrl": "./",
"module": "es2015",
"types": []
},
"include": [
"/*.spec.ts",
"
/.d.ts",
"../node_modules/api-ai-javascript/index.ts",
"**/
.ts"
],
"exclude": [
"test.ts",
"**/*.spec.ts",

]}

tsconfig.spec.json

{"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/spec",
"baseUrl": "./",
"module": "commonjs",
"types": [
"jasmine",
"node"
]
},
"files": [
"test.ts",
"polyfills.ts"
],
"include": [
"/*.spec.ts",
"
/.d.ts",
"**/
.ts",
"../node_modules/api-ai-javascript/index.ts"
]}
Really I don't know what's the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions