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

error [ReferenceError: Property 'BaseOcrEngineOptions' doesn't exist] #6

Open
NithyaBaji1997 opened this issue Jan 6, 2023 · 1 comment

Comments

@NithyaBaji1997
Copy link

NithyaBaji1997 commented Jan 6, 2023

var fieldByFieldElement = new BlinkInputReactNative.FieldByFieldElement(
'Regex',
new BlinkInputReactNative.RegexParser("[0-9]"),
' Text',
'Scan text'
);
var fieldByFieldCollection = new BlinkInputReactNative.FieldByFieldCollection(
[fieldByFieldElement]
);
const fieldByFieldResult = await BlinkInputReactNative.BlinkInput.scanWithFieldByField(
fieldByFieldCollection,
licenseKey
);

getting error : error [ReferenceError: Property 'BaseOcrEngineOptions' doesn't exist]

@mparadina
Copy link

Hi @NithyaBaji1997

Can you please change the 'regexParser.js' file in the following path:
.../node_modules/blinkinput-react-native/parsers/regexParser.js

There, you need to import "BaseOcrEngineOptions" so it looks like this:

import { Parser, ParserResult } from '../parser'
import {
    Date,
    BaseOcrEngineOptions,
} from '../types'

Let me know if this helped.

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