Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with retrieveLatestImage Attribute in MLKitView #65

Open
MogekoAttack opened this issue Aug 13, 2024 · 0 comments
Open

Error with retrieveLatestImage Attribute in MLKitView #65

MogekoAttack opened this issue Aug 13, 2024 · 0 comments

Comments

@MogekoAttack
Copy link

When creating an MLKitView element with the retrieveLatestImage attribute, the following error occurs:
Cannot read properties of undefined (reading 'setRetrieveLatestImage')

However, if I remove the retrieveLatestImage attribute, the element is created without any issues and functions correctly.
<ui:MLKitView id="cara" cameraPosition="front" detectionType="face" detection="onDetection" retrieveLatestImage="true" />

Environment
Node v20.16.0
Npm 10.8.1
Nativescript 8.8.0
@nativescript/mlkit-core ^2.1.0
@nativescript/mlkit-face-detection ^2.1.0

Steps to Reproduce

  1. Add an MLKitView element with the retrieveLatestImage attribute in a NativeScript 8 project.
  2. Run the application.
  3. Observe the error in the console.

Expected Behavior
The MLKitView should be created without throwing an error, and the retrieveLatestImage attribute should function as intended.

Actual Behavior:
The application throws a "Cannot read properties of undefined (reading 'setRetrieveLatestImage')" error when the retrieveLatestImage attribute is used.

Additional Information:

The application works correctly when the retrieveLatestImage attribute is removed.
The error suggests that the method setRetrieveLatestImage may not be properly defined or accessible in the context of the MLKitView.

Request for Assistance:
Any guidance on how to properly implement the retrieveLatestImage attribute in the MLKitView element, or if there is an alternative approach, would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant