错误:无法解析“@angular/cdk/rxjs”

Køu*_*san 2 angular-material angular

我在我的项目中添加了角度材料,我收到了这个错误。我删除了我的节点模块并重新安装。即便如此,我还是收到了这个错误。

Failed to compile.

./~/@angular/material/esm5/autocomplete.es5.js
Module not found: Error: Can't resolve '@angular/cdk/rxjs' in '/home/asus/angular-app/node_modules/@angular/material/esm5'
 @ ./~/@angular/material/esm5/autocomplete.es5.js 16:0-89
 @ ./~/@angular/material/esm5/material.es5.js
 @ ./src/app/app.module.ts
 @ ./src/main.ts
 @ multi webpack-dev-server/client?http://localhost:5454 ./src/main.ts
Run Code Online (Sandbox Code Playgroud)

Edr*_*ric 5

你看到更新日志了5.0.0-rc0吗(又名)?那是因为他们正在rxjs@angular/cdk. 你应该rxjs改用。

变更日志

  • @angular/cdk/rxjs 已被移除以支持 RxJS 5.5 的可出租操作符。