nativescript-camera-plus icon indicating copy to clipboard operation
nativescript-camera-plus copied to clipboard

Terminating app due to uncaught exception 'NativeScript encountered a fatal error: TypeError: this.takePhoto is not a function. (In 'this.takePhoto()', 'this.takePhoto' is undefined)

Open AklsKiu opened this issue 5 years ago • 9 comments

This error occurred while trying to take the photo and ends the application only on iOS: Terminating app due to uncaught exception 'NativeScript encountered a fatal error: TypeError: this.takePhoto is not a function. (In 'this.takePhoto()', 'this.takePhoto' is undefined)

AklsKiu avatar Feb 27 '19 22:02 AklsKiu

Can you share your app code? I've not seen this before in the demo project so I'm curious what's changed or what you might be executing that throws this. Thanks 👍

bradmartin avatar Feb 28 '19 00:02 bradmartin

Hi, same problem here. When looking at the source code there is a call to this.takePhoto() which is linked to SwiftyCamViewController. Maybe the bridge between nativescript-camera-plus and SwiftyCam is broken on our install ?

VierenV avatar Feb 28 '19 09:02 VierenV

I have the same problem.... nativescript-camera-plus has dependency from https://github.com/NathanWalker/SwiftyCam/tree/feature/swift-4.2 and that branch is out of date and definitely just feature branch.

SerAlalal avatar Feb 28 '19 09:02 SerAlalal

Gotcha. I think Nathan forked it originally to add some things for the plugin. Maybe syncing back up with the master would solve this. We'll try to look at this soon. Or if anyone wants to help just let us know 😊

bradmartin avatar Feb 28 '19 14:02 bradmartin

I am running into the same issue.

ghost avatar Mar 02 '19 22:03 ghost

We had to change back to 2.0.2 in the package.json and it's working again now.

CyrilLacroix avatar Mar 06 '19 17:03 CyrilLacroix

Any solution guys?

AklsKiu avatar Mar 21 '19 19:03 AklsKiu

Problem solved in this new version 2.1.1

AklsKiu avatar Mar 25 '19 20:03 AklsKiu

I think it may be related to the issue I just created #123

srokatonie avatar Apr 14 '20 15:04 srokatonie