nickcoury/nativescript-maps-app

Errors on tns run android

Opened this issue · 0 comments

I get the following errors when I try to run the

" tns run android " command

node_modules/nativescript-angular/node_modules/rxjs/Subject.d.ts(16,22):` error TS2415: Class 'Subject' incorrectly extends base class 'Observabl
e'.
Types of property 'lift' are incompatible.
Type '<T, R>(operator: Operator<T, R>) => Observable' is not assignable to type '(operator: Operator<T, R>) => Observable'.
Type 'Observable' is not assignable to type 'Observable'.
Type 'T' is not assignable to type 'R'.

node_modules/nativescript-angular/node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(23,22): error TS2415: Class 'WebSocketSubject' incorrec
tly extends base class 'AnonymousSubject'.
Types of property 'lift' are incompatible.
Type '(operator: Operator<T, R>) => WebSocketSubject' is not assignable to type '<T, R>(operator: Operator<T, R>) => Observable'.
Type 'WebSocketSubject' is not assignable to type 'Observable'.
Types of property 'operator' are incompatible.
Type 'Operator<any, R>' is not assignable to type 'Operator<any, T>'.
Type 'R' is not assignable to type 'T'.

node_modules/tns-core-modules/declarations.d.ts(3,15): error TS2300: Duplicate identifier 'Request'.
node_modules/tns-core-modules/declarations.d.ts(17,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'headers'
must be of type 'HeadersInit', but here has type 'string[] | Headers | { [index: string]: string; }'.
node_modules/tns-core-modules/declarations.d.ts(32,14): error TS2300: Duplicate identifier 'RequestMode'.
node_modules/tns-core-modules/declarations.d.ts(33,14): error TS2300: Duplicate identifier 'RequestCredentials'.
node_modules/tns-core-modules/declarations.d.ts(34,14): error TS2300: Duplicate identifier 'RequestCache'.
node_modules/tns-core-modules/declarations.d.ts(36,15): error TS2300: Duplicate identifier 'Headers'.
node_modules/tns-core-modules/declarations.d.ts(46,5): error TS2687: All declarations of 'bodyUsed' must have identical modifiers.
node_modules/tns-core-modules/declarations.d.ts(56,15): error TS2300: Duplicate identifier 'Response'.
node_modules/tns-core-modules/declarations.d.ts(69,14): error TS2300: Duplicate identifier 'ResponseType'.

node_modules/tns-core-modules/declarations.d.ts(72,5): error TS2687: All declarations of 'status' must have identical modifiers.
node_modules/tns-core-modules/declarations.d.ts(73,5): error TS2687: All declarations of 'statusText' must have identical modifiers.
node_modules/tns-core-modules/declarations.d.ts(74,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'headers'
must be of type 'HeadersInit', but here has type 'HeaderInit'.
node_modules/tns-core-modules/declarations.d.ts(74,5): error TS2687: All declarations of 'headers' must have identical modifiers.
node_modules/tns-core-modules/declarations.d.ts(78,14): error TS2300: Duplicate identifier 'BodyInit'.
node_modules/tns-core-modules/declarations.d.ts(79,14): error TS2300: Duplicate identifier 'RequestInfo'.
node_modules/typescript/lib/lib.d.ts(7999,11): error TS2300: Duplicate identifier 'Headers'.
node_modules/typescript/lib/lib.d.ts(8008,13): error TS2300: Duplicate identifier 'Headers'.
node_modules/typescript/lib/lib.d.ts(13314,11): error TS2300: Duplicate identifier 'Request'.
node_modules/typescript/lib/lib.d.ts(13331,13): error TS2300: Duplicate identifier 'Request'.
node_modules/typescript/lib/lib.d.ts(13336,11): error TS2300: Duplicate identifier 'Response'.
node_modules/typescript/lib/lib.d.ts(13348,13): error TS2300: Duplicate identifier 'Response'.
node_modules/typescript/lib/lib.d.ts(19203,6): error TS2300: Duplicate identifier 'BodyInit'.
node_modules/typescript/lib/lib.d.ts(19233,6): error TS2300: Duplicate identifier 'RequestInfo'.

node_modules/typescript/lib/lib.d.ts(19283,6): error TS2300: Duplicate identifier 'RequestCache'.
node_modules/typescript/lib/lib.d.ts(19284,6): error TS2300: Duplicate identifier 'RequestCredentials'.
node_modules/typescript/lib/lib.d.ts(19286,6): error TS2300: Duplicate identifier 'RequestMode'.
node_modules/typescript/lib/lib.d.ts(19289,6): error TS2300: Duplicate identifier 'ResponseType'.