nativescript-camera-plus
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)
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)
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 👍
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 ?
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.
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 😊
I am running into the same issue.
We had to change back to 2.0.2 in the package.json and it's working again now.
Any solution guys?
Problem solved in this new version 2.1.1
I think it may be related to the issue I just created #123