小编Alo*_*keT的帖子

node_modules / ng2-toastr / src / toast-container.component.d.ts(1,48)中的错误:TS2305- / node_modules / @ angular / core / core“'没有导出的成员

我有最新版本的"rxjs": "^6.0.0"@angular/cli": "~6.0.8" 当我运行ng serve我收到以下编译错误-

ERROR in node_modules/ng2-toastr/src/toast-container.component.d.ts(1,48): 
 /node_modules/@angular/core/core"' has no exported member'AnimationTransitionEvent'.

imported toastermodule in the below format in my app.module.ts
import {ToastrModule} from 'ngx-toastr';
Run Code Online (Sandbox Code Playgroud)

也收到以下错误

error TS2305: Module '"C:/Users/user1/Sublime Text 3/NodeJS/groupchat-application/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.
imported as below in  My service.ts
import { Observable, of} from "rxjs"; 
Run Code Online (Sandbox Code Playgroud)

请指导如何进行

node.js rxjs angular

4
推荐指数
2
解决办法
8274
查看次数

标签 统计

angular ×1

node.js ×1

rxjs ×1