我最近在项目中安装了重要日期时间选择器,我按照文档中的步骤进行安装和导入,但是将模块导入到app.module
中后,我遇到了很多错误,但无法编译。
这是错误列表:
../../node_modules/@angular-material-components/datetime-picker/lib/calendar.d.ts(8,39): error TS2307: Cannot find module '@angular/cdk/portal'.
../../node_modules/@angular-material-components/datetime-picker/lib/calendar.d.ts(9,122): error TS2307: Cannot find module '@angular/core'.
../../node_modules/@angular-material-components/datetime-picker/lib/calendar.d.ts(10,62): error TS2307: Cannot find module '@angular/material/datepicker'.
../../node_modules/@angular-material-components/datetime-picker/lib/calendar.d.ts(11,25): error TS2307: Cannot find module 'rxjs'.
有人知道是什么原因引起的吗?我使用已安装的软件包:material datetime picker