Skip to content

Property 'interval' does not exist on type 'typeof Observable'. #9

Open

Description

@harshaldhone

I am using angular 10 and facing this issue

Activity

  1. harshaldhone commented on Oct 21, 2020

    @harshaldhone
    Author

    error TS2305: Module '"../../node_modules/rxjs/Observable"' has no exported member 'Observable'.

    2 import { Observable } from 'rxjs/Observable';

  2. unuaunco commented on May 2, 2021

    @unuaunco

    Try to change this part:

    import { Observable, interval as obInterval } from 'rxjs';
    import { map, takeWhile, tap } from 'rxjs/operators';
    
    ...
    
      start(){
        let interval: any = obInterval(1000);
    
        interval
            .pipe(
                takeWhile((_: any) => !this.isFinished ),
                tap(() => this.current += 0.1)
            )
            .subscribe();
      }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions