Closed PaloJeDobryClovek closed 3 years ago
@PaloJeDobryClovek Seems no problem. My test
May you can show me a min project.
I guess you do not give a valid string to process.env.REACT_APP_DYNAMSOFT_SCANNER_KEY
.
You can debug:
console.log("key: ",process.env.REACT_APP_DYNAMSOFT_SCANNER_KEY)
DBR.BarcodeReader.productKeys = process.env.REACT_APP_DYNAMSOFT_SCANNER_KEY;
Thans for fast reply, I tried write key and is valid.... but I tried run code from chromium and get different error (before error was from firefox)
dbr.browser.mjs:11 Uncaught (in promise) TypeError: Cannot read property 'data' of undefined
at Function._callee5$ (dbr.browser.mjs:11)
at tryCatch (runtime.js:45)
at Generator.invoke [as _invoke] (runtime.js:274)
at Generator.prototype.<computed> [as next] (runtime.js:97)
at dbr.browser.mjs:11
at new Promise (<anonymous>)
at a (dbr.browser.mjs:11)
at Worker._dbrWorker.onmessage (dbr.browser.mjs:11)
Probably is problem somewhere in my implementation or app but I don't know how to find a root cause of error
@PaloJeDobryClovek My pleasure.
I cannot tell where the problem lies from these error stacks.
Can you give me a minimal project that can reproduce this problem?
Hello, I am using v8.1.2 of javascript-barcode scanner with react 16 and CRA 4.0.1, I am using example code but I have problem load scanner I still get this error, do you know where could be a problem?
error from broser:
dbr.js:
scanner react component: