Angular - “has no exported member 'Observable'”

后端 未结 14 1883
陌清茗
陌清茗 2020-12-12 11:16

Typescript code:

import { Injectable } from \'@angular/core\';
import { Observable } from \'rxjs/Observable\';
import { of         


        
相关标签:
14条回答
  • 2020-12-12 12:00

    The angular-split component is not supported in Angular 6, so to make it compatible with Angular 6 install following dependency in your application

    To get this working until it's updated use:

    "dependencies": {
    "angular-split": "1.0.0-rc.3",
    "rxjs": "^6.2.2",
        "rxjs-compat": "^6.2.2",
    }
    
    0 讨论(0)
  • 2020-12-12 12:05

    Just put:

    import { Observable} from 'rxjs';

    Just like that. Nothing more or less.

    0 讨论(0)
提交回复
热议问题