h2qutc / angular-material-components

Angular Material Library provide extra components for every project
https://h2qutc.github.io/angular-material-components/
MIT License
332 stars 162 forks source link

Issue with datetime-picker #351

Open naoufalharti opened 1 year ago

naoufalharti commented 1 year ago

Hello,

I am attempting to use the datetime-picker library, but after installing it, I am unable to start my project. I am encountering the following error: "error TS2707: Generic type 'ɵɵDirectiveDeclaration' requires between 6 and 8 type arguments" in multiple instances. Could you please assist me with this?

Here are the dependencies in my project: "dependencies": { "@angular-material-components/datetime-picker": "8.0.0", "@angular-material-components/moment-adapter": "^6.0.0", "@angular/animations": "~14.0.0", "@angular/cdk": "^16.2.1", "@angular/common": "~14.0.0", "@angular/compiler": "~14.0.0", "@angular/core": "~14.0.0", "@angular/flex-layout": "^12.0.0-beta.35", "@angular/forms": "~14.0.0", "@angular/material": "^12.0.2", "@angular/platform-browser": "~14.0.0", "@angular/platform-browser-dynamic": "~14.0.0", "@angular/router": "~14.0.0", "@types/papaparse": "^5.3.7", "archiver-zip-encryptable": "^1.0.10", "bootstrap": "^5.2.2", "date-fns": "^2.30.0", "dotenv": "^16.0.1", "file-saver": "^2.0.5", "mustache": "^4.2.0", "ng-http-loader": "^11.0.0", "ngx-logger": "^5.0.11", "ngx-mat-timepicker": "^12.2.0", "ngx-pagination": "^5.1.1", "ngx-toastr": "^14.0.0", "papaparse": "^5.4.1", "rxjs": "~7.5.0", "semver": "^5.7.2", "tslib": "^2.6.2", "zone.js": "~0.11.4" }

Thanks

vishalkharat commented 1 year ago

Did you find the fix for this? I'm also facing same issue.

stefaniojr commented 10 months ago

On your tsconfig.json (compilerOptions) add this: "skipLibCheck": true, for example:

{
    "compileOnSave": false,
    "compilerOptions": {
        ...
        "skipLibCheck": true
    },
    "angularCompilerOptions": {
        ...
    }
}