Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
erikemg opened this issue Aug 10, 2023 · 1 comment
Open

Comments

@erikemg
Copy link

erikemg commented Aug 10, 2023

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
Copy link

import { scanOCR } from "vision-camera-ocr"

Did you remember to import it before using it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants