You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Property '"colorPicker"' is incompatible with index signature , Type '{ alias: "colorPicker"; required: false; }' is not assignable to type 'string'.
#341
Open
mohitv789 opened this issue
Oct 15, 2023
· 5 comments
First Error --> ngx-color-picker/lib/color-picker.directive.d.ts:108:103 : Property '"colorPicker"' is incompatible with index signature , Type '{ alias: "colorPicker"; required: false; }' is not assignable to type 'string'.
Subsequent Errors -->
a) Error: node_modules/ngx-color-picker/lib/helpers.d.ts:22:76 : Property '"rg"' is incompatible with index signature.Type '{ alias: "rg"; required: false; }' is not assignable to type 'string'.
b) node_modules/ngx-color-picker/lib/helpers.d.ts:44:80 : Property '"rgX"' is incompatible with index signature. Type '{ alias: "rgX"; required: false; }' is not assignable to type 'string'.
Now whenever I try to use properties of color-picker in HTML elements ( tried with input / span / button ) everytime I am getting error as : Can't bind to 'cpDisableInput' since it isn't a known property of 'input'
My Project Setup :
Backend is Djangorestframework served through nginx proxy
Frontend is Angular (15) in which I am using ngx-color-picker in a component . I am making a shared module as below , importing and exporting in component module and importing shared module in app module.
First Error --> ngx-color-picker/lib/color-picker.directive.d.ts:108:103 : Property '"colorPicker"' is incompatible with index signature , Type '{ alias: "colorPicker"; required: false; }' is not assignable to type 'string'.
Subsequent Errors -->
a) Error: node_modules/ngx-color-picker/lib/helpers.d.ts:22:76 : Property '"rg"' is incompatible with index signature.Type '{ alias: "rg"; required: false; }' is not assignable to type 'string'.
b) node_modules/ngx-color-picker/lib/helpers.d.ts:44:80 : Property '"rgX"' is incompatible with index signature. Type '{ alias: "rgX"; required: false; }' is not assignable to type 'string'.
Now whenever I try to use properties of color-picker in HTML elements ( tried with input / span / button ) everytime I am getting error as : Can't bind to 'cpDisableInput' since it isn't a known property of 'input'
My Project Setup :
Backend is Djangorestframework served through nginx proxy
Frontend is Angular (15) in which I am using ngx-color-picker in a component . I am making a shared module as below , importing and exporting in component module and importing shared module in app module.
Share.Module.Ts :
Am I doing it correctly?
The text was updated successfully, but these errors were encountered: