rodgomesc / vision-camera-face-detector

VisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector
MIT License
89 stars 65 forks source link

ReferenceError: Can't find variable: __scanFaces #24

Closed dipak-agile closed 1 year ago

dipak-agile commented 1 year ago

Getting this error while using the scanFaces method.

ReferenceError: Can't find variable: __scanFaces

dipak-agile commented 1 year ago

Closing this issue.. Found the solution. Just Need to add this in babel.config.js, Make sure to clean the project, clean derived data and restart the server

module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'react-native-reanimated/plugin',
{
globals: ['__scanFaces']
},
]
],
};