Angular 启动日历模块9

Angular 启动日历模块9,angular,primeng,angular9,angular-upgrade,primeng-calendar,Angular,Primeng,Angular9,Angular Upgrade,Primeng Calendar,我使用角度9,素数9 我有我的模块:ItemModule: import { CalendarModule } from 'primeng/calendar'; @NgModule({ imports: [ CalendarModule ..... ], ..... }) 但我得到了一个错误: ERROR in node_modules/primeng/components/calendar/calendar.d.ts:246:22 - e

我使用角度9,素数9

我有我的模块:
ItemModule

import { CalendarModule } from 'primeng/calendar';

@NgModule({
    imports: [
       CalendarModule
       .....
    ],
    .....
})
但我得到了一个错误:

ERROR in node_modules/primeng/components/calendar/calendar.d.ts:246:22 - error NG6002:  
Appears in the NgModule.imports of ItemModule, but could not be resolved to an NgModule class.

This likely means that the library (primeng/calendar) which declares CalendarModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. 
Check if a newer version of the library is available, and update if so. 
Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

246 export declare class CalendarModule {
我在那里看到了博士,这个版本的Priming应该和angular 9 ivy兼容

你对此有想法吗?提前发送Thx。

在tsconfig.json中添加:

"angularCompilerOptions": {
    "fullTemplateTypeCheck": true,
    "strictInjectionParameters": true,
    **"enableIvy": false**
}

priming
版本升级到9.x.x(示例-
9.1.3

这将在下文所述的
ngcc
的帮助下,根据需要预编译模块

如果你依赖很多角度图书馆,你可以考虑加速。 通过在 npm安装后脚本通过


这看起来不是一个最终的解决方案。涂底漆9应与使用常春藤的角度9兼容。我不想仅仅因为这一个图书馆就禁用常春藤。