nickcoury / nativescript-maps-app Goto Github PK
View Code? Open in Web Editor NEWSimple Nativescript + Angular 2 + Typescript App
License: MIT License
Simple Nativescript + Angular 2 + Typescript App
License: MIT License
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'.
I am using this library . Initially it was asking for location. But since few days I found that it is not asking for location . I have used this in my application and without location I cannot plot the map
Hey Nick thanks for the maps/angular2/Nativescript repo! I had a quick question. I am new to Nativescript. I have figured out where to put my API key for Android at app/App_Resources/Android/values/nativescript_google_maps_api.xml
But dont know how to add it correctly to IOS in the
app/app.component.ts
file.
Could you please offer some assistance? Thanks!
Receiving the following errors when trying to run on Android:
Searching for devices...
Your application will be deployed only on the device specified by the provided i ndex or identifier.
Executing before-liveSync hook from C:\app\nativescript-maps-app\hooks\before-li veSync\nativescript-angular-sync.js
Executing before-prepare hook from C:\app\nativescript-maps-app\hooks\before-pre pare\nativescript-dev-typescript.js
Found peer TypeScript 2.4.2
node_modules/nativescript-angular/node_modules/rxjs/Subject.d.ts(16,22): error T S2415: Class 'Subject<T>' incorrectly extends base class 'Observable<T>'.
Types of property 'lift' are incompatible.
Type '<T, R>(operator: Operator<T, R>) => Observable<T>' is not assignable t o type '<R>(operator: Operator<T, R>) => Observable<R>'.
Type 'Observable<T>' is not assignable to type 'Observable<R>'.
Type 'T' is not assignable to type 'R'.
node_modules/nativescript-angular/node_modules/rxjs/observable/dom/WebSocketSubj ect.d.ts(23,22): error TS2415: Class 'WebSocketSubject<T>' incorrectly extends b ase class 'AnonymousSubject<T>'.
Types of property 'lift' are incompatible.
Type '<R>(operator: Operator<T, R>) => WebSocketSubject<R>' is not assignabl e to type '<T, R>(operator: Operator<T, R>) => Observable<T>'.
Type 'WebSocketSubject<R>' is not assignable to type 'Observable<T>'.
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 i dentifier '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 ty pe 'any', 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 declara tions 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 declara tions of 'status' must have identical modifiers.
node_modules/tns-core-modules/declarations.d.ts(73,5): error TS2687: All declara tions 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 ty pe 'any', but here has type 'HeaderInit'.
node_modules/tns-core-modules/declarations.d.ts(74,5): error TS2687: All declara tions 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(7960,11): error TS2300: Duplicate identifie r 'Headers'.
node_modules/typescript/lib/lib.d.ts(7969,13): error TS2300: Duplicate identifie r 'Headers'.
node_modules/typescript/lib/lib.d.ts(13115,11): error TS2300: Duplicate identifi er 'Request'.
node_modules/typescript/lib/lib.d.ts(13132,13): error TS2300: Duplicate identifi er 'Request'.
node_modules/typescript/lib/lib.d.ts(13137,11): error TS2300: Duplicate identifi er 'Response'.
node_modules/typescript/lib/lib.d.ts(13148,13): error TS2300: Duplicate identifi er 'Response'.
node_modules/typescript/lib/lib.d.ts(18756,6): error TS2300: Duplicate identifie r 'BodyInit'.
node_modules/typescript/lib/lib.d.ts(18787,6): error TS2300: Duplicate identifie r 'RequestInfo'.
node_modules/typescript/lib/lib.d.ts(18836,6): error TS2300: Duplicate identifie r 'RequestCache'.
node_modules/typescript/lib/lib.d.ts(18837,6): error TS2300: Duplicate identifie r 'RequestCredentials'.
node_modules/typescript/lib/lib.d.ts(18839,6): error TS2300: Duplicate identifie r 'RequestMode'.
node_modules/typescript/lib/lib.d.ts(18842,6): error TS2300: Duplicate identifie r 'ResponseType'.
Unable to apply changes on device: 016ed1f408cc6b45. Error is: TypeScript compil er failed with exit code 1.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.