nativescript-imagepicker icon indicating copy to clipboard operation
nativescript-imagepicker copied to clipboard

When trying to compile, I get error TS2304: Cannot find name 'NSData'

Open Stardock-AI opened this issue 7 years ago • 5 comments

Trying to run the demo app from the NativeScript Playground and running into missing ios.d types. I can see the specifications in node_modules\tns-platform-declarations\ios\objc-x86_64, but maybe there is a missing reference?

Here is my sample app I am trying to run. https://github.com/Stardock-AI/ImagePicker-httpUpload

Here is the original Playground app. I upgraded the file-system libraries to include the lastest NS 6.1 libs.

FilePickerErrors

https://play.nativescript.org/?template=play-ng&id=pmXu7c&v=15

Stardock-AI avatar Nov 04 '19 23:11 Stardock-AI

Closed by https://github.com/Stardock-AI/ImagePicker-httpUpload/pull/1

EddyVerbruggen avatar Nov 05 '19 15:11 EddyVerbruggen

Thank you Eddy! You are the best!!

Stardock-AI avatar Nov 05 '19 19:11 Stardock-AI

I have the same issue. what was the solution?

assemnabill avatar Apr 27 '21 18:04 assemnabill

What is the solution to this error? Above link gives 404 error.

n-sri avatar Jul 19 '21 16:07 n-sri

Declaring a variable as "declare var NSData: any;" helps building the application without above error. It is like tricking typescript to compile successfully.

n-sri avatar Jul 21 '21 16:07 n-sri