gev2002 / react-native-vision-camera-v3-face-detection

https://www.npmjs.com/package/react-native-vision-camera-v3-face-detection
MIT License
8 stars 1 forks source link

Compiling JS failed: 1:1:invalid empty parentheses '( )' Buffer size 3 starts with: 280a29] #5

Open nolife08021 opened 4 months ago

nolife08021 commented 4 months ago

Dint receive data from "callback", after i add "onError" i receive this error message. [unknown/unknown: [unknown/unknown] Compiling JS failed: 1:1:invalid empty parentheses '( )' Buffer size 3 starts with: 280a29]

<Camera
          options={{
            performanceMode: "fast",
          }}
          photo={true}
          onError={(err) => {
            console.log("err");
            console.log(err);
          }}
          callback={(data) => {
            console.log("face");
            console.log(data);
          }}
          style={StyleSheet.absoluteFill}
          device={device}
          ref={cameraRef}
          isActive={true}
        />
dependencies: {
    "react-native-vision-camera": "^3.9.0",
    "react-native-vision-camera-v3-face-detection": "^1.1.3",
    "react-native-worklets-core": "^0.4.0",
}