jaames / iro.js

🎨 Modular color picker widget for JavaScript, with support for a bunch of color formats

Home Page:https://iro.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage with Angular

qMalte opened this issue · comments

commented

Hello together,

I would like to use this library with Angular.

The problem is, that my typescript Compiler gives the following error:
Error: src/app/components/lights/ColorPicker/ColorPicker.component.ts:15:23 - error TS2350: Only a void function can be called with the 'new' keyword.

Is this error known?

I am glad about your answers.

Best Regards

Malte

commented

I don't know anything about angular, but I don't recognise ColorPicker.component.ts as part of iro.js, I think this error is coming from your own code. It may also help to update your TypeScript version.