NativeScript / nativescript-imagepicker

Imagepicker plugin supporting both single and multiple selection.
Apache License 2.0
104 stars 74 forks source link

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

Closed Stardock-AI closed 5 years ago

Stardock-AI commented 5 years ago

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

EddyVerbruggen commented 5 years ago

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

Stardock-AI commented 5 years ago

Thank you Eddy! You are the best!!

assemnabill commented 3 years ago

I have the same issue. what was the solution?

n-sri commented 3 years ago

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

n-sri commented 3 years ago

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