fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
249 stars 252 forks source link

Error in local dev: "This likely means that the library which declares NgxDaterangepickerMd has not been processed correctly by ngcc..." #402

Open manwithtwowatches opened 2 years ago

manwithtwowatches commented 2 years ago

Versions

Describe the bug I am trying to use a local version of the package. Having npm installed and built ngx-daterangepicker-material, and then included in a fresh angular project package.json with

"ngx-daterangepicker-material": "file:../ngx-daterangepicker-material"

and included it in app.module with

import { NgxDaterangepickerMd } from '../../node_modules/ngx-daterangepicker-material' imports: [ NgxDaterangepickerMd.forRoot(),

when I try to serve the app I get the error:

`Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.

This likely means that the library which declares NgxDaterangepickerMd 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.`

at line 3 of daterangepicker.module.ts at export declare class NgxDaterangepickerMd {

Having read around a bit it seems these kind of errors usually happen when you're using the wrong version of Angular, however it seems to me that everything is using version 11.2.1x

Basically I'm trying to set up a dev environment. Does anyone have any idea why this might be happening?

umangchadha commented 2 years ago

Hi facing same issue when i am trying to run my code on stackblitz. any luck?