date-time-picker
date-time-picker copied to clipboard
could not be resolved to an NgModule class
ERROR in node_modules/ng-pick-datetime/date-time/date-time.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.
This likely means that the library (ng-pick-datetime) which declares OwlDateTimeModule 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.
Ok so to resolve this you need to do the following
-
run this npm i ng-pick-datetime-ex
-
run this npm install dayjs
-
put this in the css or scss style sheet @import "../node_modules/ng-pick-datetime-ex/assets/style/picker.min.css"; 4.put these in the module where the picker is needed OwlDateTimeModule, OwlNativeDateTimeModule,
and you should be fine
if there is any error do npm i
It work for me just now.
@iamade install those two packages seemed to fix my issue. Im using pnpm and was getting a similar problem. Did those packages needed to be added because they are missing peer dependencies?
It still doesn't work on angular cli version 13