Skip to content

Instantly share code, notes, and snippets.

View samverneck's full-sized avatar

SAMUEL VERNECK samverneck

View GitHub Profile
yarn start v0.24.4
$ ng serve 
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200 **
Hash: 2e4faa3c53819ee36039                                                              
Time: 28619ms
chunk    {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 158 kB {4} [initial] [rendered]
chunk    {1} styles.bundle.js, styles.bundle.js.map (styles) 189 kB {4} [initial] [rendered]
chunk    {2} main.bundle.js, main.bundle.js.map (main) 7.45 kB {3} [initial] [rendered]
chunk    {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.46 MB [initial] [rendered]
ERROR in /home/samuel/Documentos/TesteTeste/sing-cli-com-scss/src/app/core/providers/api/api-base.service.ts (55,5): Type 'Observable<T | T[]>' is not assignable to type 'Observable<T>'.
  Type 'T | T[]' is not assignable to type 'T'.
    Type 'T[]' is not assignable to type 'T'.

ERROR in /home/samuel/Documentos/TesteTeste/sing-cli-com-scss/src/app/core/providers/api/api-base.service.ts (69,5): Type 'Observable<T | T[]>' is not assignable to type 'Observable<T[]>'.
  Type 'T | T[]' is not assignable to type 'T[]'.
    Type 'T' is not assignable to type 'T[]'.
      Type '{ id: string; }' is not assignable to type 'T[]'.
        Property 'includes' is missing in type '{ id: string; }'.
// import { Component, OnInit, OnDestroy, HostBinding } from '@angular/core'
// import { Router, ActivatedRoute } from '@angular/router'
// import { Subscription } from 'rxjs/Subscription'
// import { AuthService } from '../../core'
// @Component( {
// templateUrl: './forgot.component.html',
// styleUrls: [ './forgot.component.scss' ]
// } )
// export class ForgotComponent implements OnInit, OnDestroy {