OpenVidu / openvidu-tutorials

OpenVidu tutorials to get started
http://openvidu.io/tutorials
Apache License 2.0
228 stars 253 forks source link

Angular Build getting failed for v2.20.0 #166

Open pravinerande opened 3 years ago

pravinerande commented 3 years ago

`Error: node_modules/@angular/material/badge/badge.d.ts:22:22 - error TS2420: Class 'MatBadge' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatBadge' but required in type 'CanDisable'.

22 export declare class MatBadge extends _MatBadgeBase implements OnDestroy, OnChanges, CanDisable {


  node_modules/@angular/material/core/common-behaviors/disabled.d.ts:12:5
    12     disabled: boolean;
'disabled' is declared here.

Error: node_modules/@angular/material/button/button.d.ts:21:22 - error TS2420: Class 'MatButton' incorrectly implements interface 'CanColor'. Type 'MatButton' is missing the following properties from type 'CanColor': color, defaultColor

21 export declare class MatButton extends _MatButtonBase implements AfterViewInit, OnDestroy, CanDisable, CanColor, CanDisableRipple, FocusableOption {


Error: node_modules/@angular/material/button/button.d.ts:21:22 - error TS2420: Class 'MatButton' incorrectly implements interface 'CanDisable'.
  Property 'disabled' is missing in type 'MatButton' but required in type 'CanDisable'.

21 export declare class MatButton extends _MatButtonBase implements AfterViewInit, OnDestroy, CanDisable, CanColor, CanDisableRipple, FocusableOption {

node_modules/@angular/material/core/common-behaviors/disabled.d.ts:12:5 12 disabled: boolean;

    'disabled' is declared here.

Error: node_modules/@angular/material/button/button.d.ts:21:22 - error TS2420: Class 'MatButton' incorrectly implements interface 'CanDisableRipple'.
  Property 'disableRipple' is missing in type 'MatButton' but required in type 'CanDisableRipple'.

21 export declare class MatButton extends _MatButtonBase implements AfterViewInit, OnDestroy, CanDisable, CanColor, CanDisableRipple, FocusableOption {

node_modules/@angular/material/core/common-behaviors/disable-ripple.d.ts:12:5 12 disableRipple: boolean;

    'disableRipple' is declared here.

Error: node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:55 - error TS2304: Cannot find name 'abstract'.

14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;
                                                         ~~~~~~~~

Error: node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:64 - error TS1005: ';' expected.

14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;

Error: node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:69 - error TS1109: Expression expected.

14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;


Error: node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:78 - error TS2693: 'any' only refers to a type, but is being used as a value here.

14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;

Error: node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:82 - error TS1011: An element access expression should take an argument.

14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T;

Error: node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:83 - error TS1005: ';' expected.

14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T; ~

Error: node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:85 - error TS1128: Declaration or statement expected.

14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T; ~~

Error: node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:88 - error TS2304: Cannot find name 'T'.

14 export declare type AbstractConstructor<T = object> = abstract new (...args: any[]) => T; ~

Error: node_modules/@angular/material/core/option/optgroup.d.ts:17:22 - error TS2420: Class '_MatOptgroupBase' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type '_MatOptgroupBase' but required in type 'CanDisable'.

17 export declare class _MatOptgroupBase extends _MatOptgroupMixinBase implements CanDisable {


  node_modules/@angular/material/core/common-behaviors/disabled.d.ts:12:5
    12     disabled: boolean;
'disabled' is declared here.

Error: node_modules/@angular/material/form-field/form-field.d.ts:60:22 - error TS2420: Class 'MatFormField' incorrectly implements interface 'CanColor'. Type 'MatFormField' is missing the following properties from type 'CanColor': color, defaultColor

60 export declare class MatFormField extends _MatFormFieldBase implements AfterContentInit, AfterContentChecked, AfterViewInit, OnDestroy, CanColor {


Error: node_modules/@angular/material/icon/icon.d.ts:61:22 - error TS2420: Class 'MatIcon' incorrectly implements interface 'CanColor'.
  Type 'MatIcon' is missing the following properties from type 'CanColor': color, defaultColor

61 export declare class MatIcon extends _MatIconBase implements OnInit, AfterViewChecked, CanColor, OnDestroy {

Error: node_modules/@angular/material/input/input.d.ts:28:22 - error TS2420: Class 'MatInput' incorrectly implements interface 'CanUpdateErrorState'. Type 'MatInput' is missing the following properties from type 'CanUpdateErrorState': updateErrorState, errorState

28 export declare class MatInput extends _MatInputBase implements MatFormFieldControl, OnChanges, OnDestroy, AfterViewInit, DoCheck, CanUpdateErrorState {


Error: node_modules/@angular/material/input/input.d.ts:28:22 - error TS2720: Class 'MatInput' incorrectly implements class 'MatFormFieldControl<any>'. Did you mean to extend 'MatFormFieldControl<any>' and inherit its members as a subclass?
  Type 'MatInput' is missing the following properties from type 'MatFormFieldControl<any>': ngControl, errorState

28 export declare class MatInput extends _MatInputBase implements MatFormFieldControl<any>, OnChanges, OnDestroy, AfterViewInit, DoCheck, CanUpdateErrorState {

Error: node_modules/@angular/material/menu/menu-item.d.ts:22:22 - error TS2420: Class 'MatMenuItem' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatMenuItem' but required in type 'CanDisable'.

22 export declare class MatMenuItem extends _MatMenuItemBase implements FocusableOption, CanDisable, CanDisableRipple, AfterViewInit, OnDestroy {


  node_modules/@angular/material/core/common-behaviors/disabled.d.ts:12:5
    12     disabled: boolean;
'disabled' is declared here.

Error: node_modules/@angular/material/menu/menu-item.d.ts:22:22 - error TS2420: Class 'MatMenuItem' incorrectly implements interface 'CanDisableRipple'. Property 'disableRipple' is missing in type 'MatMenuItem' but required in type 'CanDisableRipple'.

22 export declare class MatMenuItem extends _MatMenuItemBase implements FocusableOption, CanDisable, CanDisableRipple, AfterViewInit, OnDestroy {


  node_modules/@angular/material/core/common-behaviors/disable-ripple.d.ts:12:5
    12     disableRipple: boolean;
'disableRipple' is declared here.

Error: node_modules/@angular/material/progress-spinner/progress-spinner.d.ts:40:22 - error TS2420: Class 'MatProgressSpinner' incorrectly implements interface 'CanColor'. Type 'MatProgressSpinner' is missing the following properties from type 'CanColor': color, defaultColor

40 export declare class MatProgressSpinner extends _MatProgressSpinnerBase implements OnInit, CanColor {


Error: node_modules/@angular/material/select/select.d.ts:105:31 - error TS2420: Class '_MatSelectBase<C>' incorrectly implements interface 'CanDisable'.
  Property 'disabled' is missing in type '_MatSelectBase<C>' but required in type 'CanDisable'.

105 export declare abstract class _MatSelectBase<C> extends _MatSelectMixinBase implements AfterContentInit, OnChanges, OnDestroy, OnInit, DoCheck, ControlValueAccessor, CanDisable, HasTabIndex, MatFormFieldControl<any>, CanUpdateErrorState, CanDisableRipple {

node_modules/@angular/material/core/common-behaviors/disabled.d.ts:12:5 12 disabled: boolean;

    'disabled' is declared here.

Error: node_modules/@angular/material/select/select.d.ts:105:31 - error TS2420: Class '_MatSelectBase<C>' incorrectly implements interface 'CanDisableRipple'.
  Property 'disableRipple' is missing in type '_MatSelectBase<C>' but required in type 'CanDisableRipple'.

105 export declare abstract class _MatSelectBase<C> extends _MatSelectMixinBase implements AfterContentInit, OnChanges, OnDestroy, OnInit, DoCheck, ControlValueAccessor, CanDisable, HasTabIndex, MatFormFieldControl<any>, CanUpdateErrorState, CanDisableRipple {

node_modules/@angular/material/core/common-behaviors/disable-ripple.d.ts:12:5 12 disableRipple: boolean;

    'disableRipple' is declared here.

Error: node_modules/@angular/material/select/select.d.ts:105:31 - error TS2420: Class '_MatSelectBase<C>' incorrectly implements interface 'CanUpdateErrorState'.
  Type '_MatSelectBase<C>' is missing the following properties from type 'CanUpdateErrorState': stateChanges, updateErrorState, errorState

105 export declare abstract class _MatSelectBase<C> extends _MatSelectMixinBase implements AfterContentInit, OnChanges, OnDestroy, OnInit, DoCheck, ControlValueAccessor, CanDisable, HasTabIndex, MatFormFieldControl<any>, CanUpdateErrorState, CanDisableRipple {

Error: node_modules/@angular/material/select/select.d.ts:105:31 - error TS2420: Class '_MatSelectBase' incorrectly implements interface 'HasTabIndex'. Type '_MatSelectBase' is missing the following properties from type 'HasTabIndex': tabIndex, defaultTabIndex

105 export declare abstract class _MatSelectBase extends _MatSelectMixinBase implements AfterContentInit, OnChanges, OnDestroy, OnInit, DoCheck, ControlValueAccessor, CanDisable, HasTabIndex, MatFormFieldControl, CanUpdateErrorState, CanDisableRipple {


Error: node_modules/@angular/material/select/select.d.ts:105:31 - error TS2720: Class '_MatSelectBase<C>' incorrectly implements class 'MatFormFieldControl<any>'. Did you mean to extend 'MatFormFieldControl<any>' and inherit its members as a subclass?
  Type '_MatSelectBase<C>' is missing the following properties from type 'MatFormFieldControl<any>': stateChanges, ngControl, disabled, errorState

105 export declare abstract class _MatSelectBase<C> extends _MatSelectMixinBase implements AfterContentInit, OnChanges, OnDestroy, OnInit, DoCheck, ControlValueAccessor, CanDisable, HasTabIndex, MatFormFieldControl<any>, CanUpdateErrorState, CanDisableRipple {

Error: node_modules/@angular/material/slider/slider.d.ts:38:22 - error TS2420: Class 'MatSlider' incorrectly implements interface 'CanColor'. Type 'MatSlider' is missing the following properties from type 'CanColor': color, defaultColor

38 export declare class MatSlider extends _MatSliderBase implements ControlValueAccessor, OnDestroy, CanDisable, CanColor, AfterViewInit, HasTabIndex {


Error: node_modules/@angular/material/slider/slider.d.ts:38:22 - error TS2420: Class 'MatSlider' incorrectly implements interface 'CanDisable'.
  Property 'disabled' is missing in type 'MatSlider' but required in type 'CanDisable'.

38 export declare class MatSlider extends _MatSliderBase implements ControlValueAccessor, OnDestroy, CanDisable, CanColor, AfterViewInit, HasTabIndex {

node_modules/@angular/material/core/common-behaviors/disabled.d.ts:12:5 12 disabled: boolean;

    'disabled' is declared here.

Error: node_modules/@angular/material/slider/slider.d.ts:38:22 - error TS2420: Class 'MatSlider' incorrectly implements interface 'HasTabIndex'.
  Type 'MatSlider' is missing the following properties from type 'HasTabIndex': tabIndex, defaultTabIndex

38 export declare class MatSlider extends _MatSliderBase implements ControlValueAccessor, OnDestroy, CanDisable, CanColor, AfterViewInit, HasTabIndex {

Error: node_modules/@angular/material/toolbar/toolbar.d.ts:22:22 - error TS2420: Class 'MatToolbar' incorrectly implements interface 'CanColor'. Type 'MatToolbar' is missing the following properties from type 'CanColor': color, defaultColor

22 export declare class MatToolbar extends _MatToolbarBase implements CanColor, AfterViewInit { `

shaw8wit commented 2 years ago

@pravinerande did you get a fix for this? I'm facing the same error.

micaelgallego commented 2 years ago

@CSantosM can you take a look please?

CSantosM commented 2 years ago

What tutorial are you building? Could you please post the steps for reproducing the issue?

Sharath-Hanumanthaiah commented 2 years ago

I am facing same issue. I am trying to run openvidu-library-angular. "openvidu-angular": "^2.21.0", Error: node_modules/openvidu-angular/node_modules/@angular/material/badge/badge.d.ts:22:22 - error TS2420: Class 'MatBadge' incorrectly implements interface 'CanDisable'. Property 'disabled' is missing in type 'MatBadge' but required in type 'CanDisable'.

22 export declare class MatBadge extends _MatBadgeBase implements OnDestroy, OnChanges, CanDisable {


  node_modules/openvidu-angular/node_modules/@angular/material/core/common-behaviors/disabled.d.ts:12:5
    12     disabled: boolean;
'disabled' is declared here.

Error: node_modules/openvidu-angular/node_modules/@angular/material/button/button.d.ts:21:22 - error TS2420: Class 'MatButton' incorrectly implements interface 'CanColor'. Type 'MatButton' is missing the following properties from type 'CanColor': color, defaultColor

21 export declare class MatButton extends _MatButtonBase implements AfterViewInit, OnDestroy, CanDisable, CanColor, CanDisableRipple, FocusableOption {



Error: node_modules/openvidu-angular/node_modules/@angular/material/button/button.d.ts:21:22 - error TS2420: Class 'MatButton' incorrectly implements interface 'CanDisable'.
  Property 'disabled' is missing in type 'MatButton' but required in type 'CanDisable'.

21 export declare class MatButton extends _MatButtonBase implements AfterViewInit, OnDestroy, CanDisable, CanColor, CanDisableRipple, FocusableOption {
enrique-lozano commented 2 years ago

Same issue here, did you get a fix for this?