jaames / iro.js

🎨 Modular color picker widget for JavaScript, with support for a bunch of color formats
https://iro.js.org
Mozilla Public License 2.0
1.3k stars 81 forks source link

Usage with Angular #221

Closed qMalte closed 2 years ago

qMalte commented 2 years ago

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

jaames commented 2 years ago

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.