konvajs / ng2-konva

Angular & Canvas - JavaScript library for drawing complex canvas graphics using Angular.
http://rafaelescala.com/ng2-konva/
119 stars 33 forks source link

ng2-konva not working in angular 4 #2

Closed kirtiesl closed 6 years ago

kirtiesl commented 6 years ago

Hi,

Getting following errors:

ERROR in node_modules/konva/konva.d.ts (550,84): Cannot find name 'ImageBitmap'.

ERROR in node_modules/konva/konva.d.ts (551,84): Cannot find name 'ImageBitmap'.

ERROR in node_modules/konva/konva.d.ts (552,84): Cannot find name 'ImageBitmap'.

ERROR in node_modules/konva/konva.d.ts (572,23): Cannot find name 'Path2D'.

angular version: 4 angular/cli: 1.0.6 node: 6.9.2

rafaesc commented 6 years ago

Hi @kirtiesl,

That error is in the konva module, can you share your code where use konva?

kirtiesl commented 6 years ago

I have Installed through npm like- npm install konva ng2-konva --save

and imported in app.module.ts - import { KonvaModule } from 'ng2-konva';

getting above error.

rafaesc commented 6 years ago

Please try to install the version ng2-konva@1.0.8

kirtiesl commented 6 years ago

done with version ng2-konva@1.0.8, still getting same errors...

rafaesc commented 6 years ago

Thanks for responding, I will have to create a sample project to replicate the issue. I hope that the weekend I fix that

Regards.

rafaesc commented 6 years ago

Hi @kirtiesl,

I've published the fix under v2.0.2. feel free to reopen this issue if it still can't work

Regards

fvadouko commented 6 years ago

Hi,

it still can't work under v2.0.2. I installed it and set up it, like in this link : https://www.npmjs.com/package/ng2-konva.