error TS2687: All declarations of 'observable' must have identical modifiers
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 updated to work with the newest @types/node version. So at the moment, just use the older version:
npm install @types/node@10.1.4
UPDATE: The fix on RxJS is already done -> https://github.com/ReactiveX/rxjs/pull/3773 . Now they just have to merge the changes and publish the new version.
I had the same problem with a lower version of nodes.
What fixed it was to:
go to the problematic
observable.d.ts
, in my case it was:node_modules/angular-datatables/node_modules/rxjs/internal/symbol/observable.d.ts
change:
declare global { interface SymbolConstructor { readonly observable: symbol; }}
to:
declare global { interface SymbolConstructor { observable: symbol; }}
I guess the opposite also work.