https://www.npmjs.com/package/ngx-color ... 0.0,/p>br/> Установка его, используя команду ниже.
Код: Выделить всё
npm install ngx-color-picker --saveЯ могу запустить ng служить и никакой ошибки не происходит.
Код: Выделить всё
import { ColorPickerModule } from 'ngx-color-picker';
@NgModule({
...
imports: [
...
ColorPickerModule
]
})
Код: Выделить всё
Error: node_modules/ngx-color-picker/lib/color-picker.directive.d.ts:108:103 - error TS2344: Type '{ colorPicker: { alias: "colorPicker"; required: false; }; cpWidth: { alias: "cpWidth"; required: false; }; cpHeight: { alias: "cpHeight"; required: false; }; cpToggle: { alias: "cpToggle"; required: false; }; ... 33 more ...; cpExtraTemplate: { ...; }; }' does not satisfy the constraint '{ [key: string]: string; }'.
Property '"colorPicker"' is incompatible with index signature.
Type '{ alias: "colorPicker"; required: false; }' is not assignable to type 'string'.
Подробнее здесь: https://stackoverflow.com/questions/777 ... g-an-error
Мобильная версия