zxing-js / browser

ZXing for JS's browser layer with decoding implementations for browser.
MIT License
213 stars 43 forks source link

NotFoundException BrowserPDF417Reader #91

Open leogaab opened 2 years ago

leogaab commented 2 years ago

Hi, I'm working on a React project and I've been struggling trying to make the reader work. I'm uploading a file on an async function and created a new instance of BrowserPDF417Reader, after calling decode method and passing the file as a parameter, it keeps breaking... the console throws this message.

NotFoundException at Function.NotFoundException.getNotFoundInstance

By the way, just for the record I've tried the methods decodeFromImage(), decodeFromImageElement(), decodeFromImageUrl(). The version that I've installed on my package is "@zxing/browser": "^0.1.1", "@zxing/library": "^0.19.1", Also I've tried using other versions, having the same result.

Always the same response, the file is being read as blob.

It would be great if anyone can give me a help or a hint so I can try this new feature. Better if we have more docs to handle this.