jaames/iro.js

Cannot build on typescript

unstopp opened this issue · 3 comments

Hello,

Might be a noob question, but I managed to integrate iro with ionic 3, however when I try to build the app, I'm getting some typescript errors (see picture attached).

Any help is very much appreciated.

Marius

Screenshot 2021-10-11 at 19 28 40

That's quite strange. It seems to be choking on the dynamic import statement (using import as a function like import('my/module') is slightly different to the usual import 'my/module'). I don't know anything about Ionic to really be much help here, but maybe that info is useful.

You should be able to just comment out that line in ColorPicker.d.ts, since it's not super essential. If you try that, let me know if it works and I'll look into a more sustained fix when I have the time.

Hey @jaames, thank you for your answer. I'm afraid that's not the only error.. there are a lot of them.
One funny thing I tried, if I comment out all colorpicker lines I am using in my code, I am able to build/serve the app. After it's served, I can uncomment the lines and the picker works. However, I am unable to build the app for publishing on Google Play.. so yea, not sure what happens :/

I fixed this by updating stuff, include typescript and other essentials