angular-material-components
angular-material-components copied to clipboard
Class 'NgxMatDatetimeContent<D>' incorrectly implements interface 'CanColor'
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
I have the same problem.Did you solve it?
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: @.***>
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...
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.
+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.