Javascript 更新到Angular 4后无法导入模块
我在将用Angular编写的共享模块导入另一个Angular应用程序时遇到问题。在v2.4.9中,一切正常,但在更新到v4.0.x之后,我发现RxJS出现了一个错误Javascript 更新到Angular 4后无法导入模块,javascript,angular,typescript,angular-cli,Javascript,Angular,Typescript,Angular Cli,我在将用Angular编写的共享模块导入另一个Angular应用程序时遇到问题。在v2.4.9中,一切正常,但在更新到v4.0.x之后,我发现RxJS出现了一个错误 ERROR in ...../app/node_modules/app-common/src/app/shared/services/api.service.ts (30,14): Property 'catch' does not exist on type 'Observable<any>'. ...../app/n
ERROR in ...../app/node_modules/app-common/src/app/shared/services/api.service.ts (30,14): Property 'catch' does not exist on type 'Observable<any>'.
...../app/node_modules/app-common/src/app/shared/services/api.service.ts (39,14): Property 'catch' does not exist on type 'Observable<Response>'.
...../app/node_modules/app-common/src/app/shared/services/api.service.ts (49,14): Property 'catch' does not exist on type 'Observable<Response>'.
...../app/node_modules/app-common/src/app/shared/services/api.service.ts (58,14): Property 'catch' does not exist on type 'Observable<Response>'.
没有任何变化-仍然是错误
有什么想法吗
import { Observable } from 'rxjs/Rx';