All declarations of 'stream' must have identical modifiers api-ai-javascript - Dialogflow

all declarations of 'type' must have identical modifiers
all declarations of 'stream' must have identical modifiers
es6 shim all declarations of 'value' must have identical modifiers
all declarations of innerwidth must have identical modifiers
all declarations must have identical type parameters
important international declarations

I am trying to integrate Dialogflow in Angular 7. I am getting this error.

  ** Angular Live Development Server is listening on localhost:4200, 
open your browser on http://localhost:4200/ **

Date: 2018-11-22T13:47:11.748Z
Hash: 4075ca64830b90f82558
Time: 4597ms
chunk {main} main.js, (main) 1.85 kB [initial] [rendered]
chunk {polyfills} polyfills.js, (polyfills) 92.4 kB [initial] [rendered]
chunk {runtime} runtime.js, (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles.js, (styles) 16.2 kB [initial] [rendered]
chunk {vendor} vendor.js, (vendor) 318 kB [initial] [rendered]

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

ℹ 「wdm」: Failed to compile.

For temporary solution to this, I have added the following check in your tsconfig.json file

  "compilerOptions": {
    "skipLibCheck": true

"All declarations must have identical modifiers" error only changed , TypeScript Version: 3.1.0-dev.20180810 Search Terms: Code a.ts: interface Document { fullscreen: boolean; } tsconfig.json: {} Run tsc --watch. The declaration was signed by representatives from New Hampshire, Massachusetts Bay, Rhode Island, Connecticut, New York, New Jersey, Pennsylvania, Maryland, Delaware, Virginia, North Carolina, South Carolina, and Georgia . The Lee Resolution for independence was passed on July 2 with no opposing votes.

I think i have been following the same tutorial and i came across the solution in this thread right here.

The section where you are busy importing the library should have this path

import { ApiAiClient } from 'api-ai-javascript/es6/ApiAiClient'

in your tsconfig.json

 "compileOnSave": false,
 "compilerOptions": {
   "typeRoots": ["node_modules/@types"],
   "lib": ["es2017", "dom"],

Hope this helps, this did remove the compiling error and i was able to continue.


(33,5): error TS2687: All declarations of 'value' must have identical , (33,5): error TS2687: All declarations of 'value' must have identical modifiers. #67​. Closed. aprtm opened this issue on Oct 3, 2017 · 4 comments. Closed  Texas. A Declaration of the Causes which Impel the State of Texas to Secede from the Federal Union. The government of the United States, by certain joint resolutions, bearing date the 1st day of March, in the year A.D. 1845, proposed to the Republic of Texas, then *a free, sovereign and independent nation* [emphasis in the original], the annexation of the latter to the former, as one of the co

I had the same error and only with below changing in import line, it fixed.

import {ApiAiClient} from 'api-ai-javascript/es6/ApiAiClient';

error TS2687: All declarations of 'observable' must , Had the same issue after updating @types/node to 10.3.0. After downgrading to version 10.1.4 everything is working again. I think rxjs has to be  The declaration is usually an act of delivering a performative speech (not to be confused with a mere speech) or the presentation of a signed document by an authorized party of a national government in order to create a state of war between two or more sovereign states.

List of international declarations, The general instructions to Form SPB—3, Declaration of Surplus Property to In column (c) enter the total cost of all declarations filed during the current  A declaration of war is a formal declaration issued by a national government indicating that a state of war exists between that nation and another. The document Declarations of War and Authorizations for the Use of Military Force: Historical Background and Legal Implications gives an extensive listing and summary of statutes which are automatically engaged upon the US declaring war.

Federal Register, Pursuant to that power, Congress has enacted 11 declarations of war during the course of In the nineteenth century all declarations of war were passed by the  Disaster Declarations by Year. Declaration Type Apply. Download this data: 2020 (178) 2019 (101) 2018 (124) 2017 (137) 2016 (103) 2015 (80

Declarations of War (DOW) and Authorizations for the Use of , (f ) All nets used in Red Lake Reservation waters must be marked with All declarations submitted in person by the owner, or his representative, must be filed  A. Instructions for Declaration Form – FL All Family 135 Read your local court rules. Your court may have other, special requirements for declarations. Also, some motions require special Declaration forms not in this packet. Your county’s local rules or forms may be online at

  • I wasn't able to continue using this solution.
  • I managed to get it working without modifying my tsconfig file by just changing the import :) Thanks for the help.