luicfrr / react-native-vision-camera-face-detector

Vision Camera Frame Processor Plugin to detect faces using MLKit Face Detector
https://www.npmjs.com/package/react-native-vision-camera-face-detector
MIT License
75 stars 16 forks source link

[BUG] undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[10], "react-native-vision-camera-face-detector").Camera #19

Closed w3company-leo closed 3 months ago

w3company-leo commented 3 months ago

Describe the bug In ios, error has occured when open camera, android is work well

undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[10], "react-native-vision-camera-face-detector").Camera

Smartphone (please complete the following information):

luicfrr commented 3 months ago

@w3company-leo I have a simillar (maybe is the same) issue on a client's iphone 15 pro max but the problem is I don't have an Iphone 15 to debug and fix this issue.

Can you please provide me more details, logs so I can try fix this issue? You can also open a PR with the fix

w3company-leo commented 3 months ago

Both of way has same type of error I just got error in module import

undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[10], "react-native-vision-camera-face-detector").Camera
import {Camera as DefCamera, useCameraDevice, useFrameProcessor} from "react-native-vision-camera";
import {detectFaces, DetectionResult} from "react-native-vision-camera-face-detector";
import {Worklets} from "react-native-worklets-core";
---- ERR----
Possible Unhandled Promise Rejection (id: 2):
TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[10], "react-native-vision-camera-face-detector").detectFaces')
luicfrr commented 3 months ago

can you provide a minimum reproducible example app?

w3company-leo commented 3 months ago

I just used your example..

luicfrr commented 3 months ago

Sorry, I can't repro your issue so I'm closing this issue.

I would apretiate if you can open a PR with a fix for this problem.