aarongrider / vision-camera-ocr

VisionCamera Frame Processor Plugin to detect text in real time using MLKit Text Detector (OCR)
MIT License
235 stars 86 forks source link

ReferenceError: Property '__scanOCR' doesn't exist, js engine: hermes #25

Open erikemg opened 11 months ago

erikemg commented 11 months ago

I get this error ReferenceError: Property '__scanOCR' doesn't exist, js engine: hermes whenever I load my app with the package installed. I have added the right code to the babel.config.js, it looks like this:

module.exports = function(api) {
  api.cache(true);
  return {

     presets: ['babel-preset-expo'],
     plugins: [
       [
          'react-native-reanimated/plugin',
         {
           globals: ['__scanOCR'],
         },
       ],
     ]
  };
};

I am using a expo dev client if that is relevent. I would appreciate any and all help thanks in advance.

michael-gates-techngs commented 10 months ago
import { scanOCR } from "vision-camera-ocr"

Did you remember to import it before using it?