Closed inpendio closed 2 years ago
Did you set babel plugin correctly? see guide but you have to add __scanFaces
.
closing due inactivity
@iAmGhost I tried the same guide but still getting "Property '_scanFaces' doesn't exist" issue. Can anyone please help me into this?
"react": "17.0.2",
"react-native": "0.68.0",
"react-native-reanimated": "^2.7.0",
"react-native-vision-camera": "^2.13.2",
"vision-camera-face-detector": "^0.1.8"
__scanFaces
Facing same issue
try using this in package.json
"vision-camera-face-detector": "rodgomesc/vision-camera-face-detector#master"
then run yarn install
or npm install
again
references BenHurMartins/react-native-face-detection/package.json
I am also facing the same issue
babel.config :
My import
error on metro
try using this in
package.json
"vision-camera-face-detector": "rodgomesc/vision-camera-face-detector#master"
then run
yarn install
ornpm install
againreferences BenHurMartins/react-native-face-detection/package.json
I tried like you have quoted :
package,json file:
I got this error :
none of the files were detected:
Same issue, any idea? Already added __scanFaces to babel file
I don't have time for investigating but here's some suggestions:
Also, please share the initial logs that are logged by VisionCamera to Logcat on app-start, it says "Registering Plugins" or something like that.
)'import 'react-native-reanimated';'....on top of your index file.
try using this in
package.json
"vision-camera-face-detector": "rodgomesc/vision-camera-face-detector#master"
then run
yarn install
ornpm install
againreferences BenHurMartins/react-native-face-detection/package.json
this worked for me I was try to add the reanimated import in my index.js file (didnt work), I could delete that line after installing from github repo
Hi, trying out your lib. and getting the above error. scanFaces is not found in global scope. Several errors pop up: `ReferenceError: Property 'scanFaces' doesn't exist, js engine: hermes
Error: Requiring module "node_modules/vision-camera-face-detector/src/index.ts", which threw an exception: ReferenceError: Property '__scanFaces' doesn't exist, js engine: hermes`
Env:
Tested on 2 real devices.