Модуль календаря Primeng angular 9 - PullRequest
0 голосов
/ 26 марта 2020

Я использую angular 9, primeng 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 {

Я видел там c, эта версия primeng должна быть совместима с angular 9 ivy.

У вас есть идеи по этому поводу? Спасибо заранее.

1 Ответ

0 голосов
/ 03 мая 2020

Добавьте в tsconfig. json:

"angularCompilerOptions": {
    "fullTemplateTypeCheck": true,
    "strictInjectionParameters": true,
    **"enableIvy": false**
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...