angular-material-components icon indicating copy to clipboard operation
angular-material-components copied to clipboard

Class 'NgxMatDatetimeContent<D>' incorrectly implements interface 'CanColor'

Open AndyDeCoder opened this issue 3 years ago • 5 comments

Below is my full error info:-

Error: node_modules/@angular-material-components/datetime-picker/lib/datetime-picker.component.d.ts:22:79 - error TS2694: Namespace '"C:/0.Development/ADASPediaPortalNew/node_modules/@angular/material/core/index"' has no exported member '_Constructor'.

22 declare const _MatDatetimepickerContentBase: import("@angular/material/core")._Constructor<CanColor> & import("@angular/material/core")._AbstractConstructor<CanColor> & { ~~~~~~~~~~~~

Error: node_modules/@angular-material-components/datetime-picker/lib/datetime-picker.component.d.ts:22:137 - error TS2694: Namespace '"C:/0.Development/ADASPediaPortalNew/node_modules/@angular/material/core/index"' has no exported member '_AbstractConstructor'.

22 declare const _MatDatetimepickerContentBase: import("@angular/material/core")._Constructor<CanColor> & import("@angular/material/core")._AbstractConstructor<CanColor> & { ~~~~~~~~~~~~~~~~~~~~

Error: node_modules/@angular-material-components/datetime-picker/lib/datetime-picker.component.d.ts:34:22 - error TS2420: Class 'NgxMatDatetimeContent<D>' incorrectly implements interface 'CanColor'. Type 'NgxMatDatetimeContent<D>' is missing the following properties from type 'CanColor': color, defaultColor

34 export declare class NgxMatDatetimeContent<D> extends _MatDatetimepickerContentBase implements AfterViewInit, CanColor

AndyDeCoder avatar Dec 20 '21 06:12 AndyDeCoder

I have the same problem.Did you solve it?

EEIT10402 avatar Dec 29 '21 05:12 EEIT10402

Hello there, Resolved by deleting node modules and pckage-lock.json and npm install,

Thanks and Regards Aniket

On Wed, 29 Dec 2021, 11:21 ZhuWei-Systex, @.***> wrote:

I have the same problem.Did you solve it?

— Reply to this email directly, view it on GitHub https://github.com/h2qutc/angular-material-components/issues/234#issuecomment-1002408484, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGWU6LNHS4PESAPG7AWVKH3UTKOVZANCNFSM5KM4QNOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

AndyDeCoder avatar Dec 29 '21 05:12 AndyDeCoder

Thanks for your reply~ but it's not work for me. My angular version is 12,and i change @angular-material-components/datetime-picker version from 7.0.1 to 4.0.3 ,the problem disappeared, but another problem appeared. Too much time waste to give up...

EEIT10402 avatar Dec 29 '21 07:12 EEIT10402

Thanks for your reply~ but it's not work for me. My angular version is 12,and i change @angular-material-components/datetime-picker version from 7.0.1 to 4.0.3 ,the problem disappeared, but another problem appeared. Too much time waste to give up...

Their NPM page does clearly state which versions of library are needed for which angular version. image

AlexeyOplachko avatar Jan 31 '22 17:01 AlexeyOplachko

+1 Can't use the lib because of it.

"@angular/core": "~12.0.5", "@angular/material": "12.2.13", "@angular-material-components/datetime-picker": "^7.0.1",

Will try to solve if I find some spare time.

Martin-Eckleben avatar May 16 '22 13:05 Martin-Eckleben