nativescript-community / ui-canvas

Implement Canvas into your NativeScript apps.
https://nativescript-community.github.io/ui-canvas/
Apache License 2.0
31 stars 9 forks source link

Cannot find name 'UIImage' #6

Closed ezpzlmnsqzy1 closed 4 years ago

ezpzlmnsqzy1 commented 5 years ago

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Ran tns plugin add nativescript-canvas in my project, followed by tns run android. During the run process the following is outputted:

ERROR in node_modules/nativescript-canvas/canvas.d.ts(64,71): error TS2304: Cannot find name 'UIImage'.
node_modules/nativescript-canvas/canvas.d.ts(68,43): error TS2304: Cannot find name 'UIImage'.
node_modules/nativescript-canvas/canvas.d.ts(95,50): error TS2304: Cannot find name 'UIImage'.
node_modules/nativescript-canvas/canvas.d.ts(96,50): error TS2304: Cannot find name 'UIImage'.

The app still deploys to my phone and (generally) works, but none of the Canvas methods work.

farfromrefug commented 5 years ago

I can fix it in the future . Right now you can fix it by using tns-platform-declarations