Angular 安装角材料时出现问题

Angular 安装角材料时出现问题,angular,installation,angular-material,Angular,Installation,Angular Material,我按照简单的指示去做 安装了两个软件包 "dependencies": { "@angular/cdk": "^5.2.4", "@angular/material": "^5.2.4" } 已添加到app.shared.modules.ts 及 已将导入添加到app.component.css 当我试着跑的时候,我会 处理请求时发生未处理的异常。 NodeInvocationException:预渲染失败,原因是错误:错误:找不到模块“rxjs/operators/take”

我按照简单的指示去做

安装了两个软件包

"dependencies": {
    "@angular/cdk": "^5.2.4",
    "@angular/material": "^5.2.4"
}
已添加到app.shared.modules.ts

已将导入添加到app.component.css

当我试着跑的时候,我会

处理请求时发生未处理的异常。 NodeInvocationException:预渲染失败,原因是错误:错误:找不到模块“rxjs/operators/take” 在WebPackageMissingModule(C:\Users\MHerb\Downloads\AAMC RET\AAMC\AAMC\ClientApp\dist\main server.js:17786:139)


有什么想法吗

您使用的是@angular/cli的最新版本吗?是否尝试了npm安装--saverxjs@latest?
import { MatButtonModule, MatCheckboxModule } from '@angular/material';
import: [   MatButtonModule,
        MatCheckboxModule]
@import "~@angular/material/prebuilt-themes/indigo-pink.css";