id1945 / ngx-scanner-qrcode

This library is built to provide a solution scanner QR code. This library takes in raw images and will locate, extract and parse any QR code found within.
https://id1945.github.io/ngx-scanner-qrcode
GNU Lesser General Public License v2.1
57 stars 28 forks source link

Build with -sASSERTIONS #25

Open keminkasundra opened 1 year ago

keminkasundra commented 1 year ago

I am on angular version 14..2.12

On local environment it is working as aspected. But on production mode it is throwing below error when we starting to reading barcode.

Error: Uncaught (in promise): RuntimeError: Aborted(both async and sync fetching of the wasm failed). Build with -sASSERTIONS for more info.

id1945 commented 1 year ago

@keminkasundra I have also noticed this problem. I will check and try to fix this error soon. Thank you for using this library. @@

MohammedAlsuliman commented 1 year ago

Any updates on this issue ?🏃🏻‍♂️

kapilv24 commented 1 year ago

@id1945 Please fix this issue as its not working for production. I notice one thing if we give camera permission with delay then its working fine otherwise zbar.js throwing error

Please fix this if possible

id1945 commented 1 year ago

@all Please provide details which angular version has this error.

mukund-9652 commented 1 year ago

@ALL Please provide details which angular version has this error.

Hi @id1945, I am using Angular: 13.0.3

goku7995 commented 1 year ago

Hi @id1945 any update on this issue? My Angular version is 14.3.0 and I am using 1.6.6 library version. Thank you for creating the simple library

penihel commented 10 months ago

Hi @id1945 any update on this issue? My Angular version is 17

penihel commented 10 months ago

I solved!

the problem was when serving in Azure WebApp

you need to configure de wasm mimetype in a web.config like this. to allow the server deal with wasm files

`<?xml version="1.0" encoding="UTF-8"?>

` this is the important line ``
RSErenAkgoz commented 9 months ago

Hello, I'm getting the same error, is your problem solved?

id1945 commented 1 week ago

Hey guys. I fixed this in version 1.7.3 🥇

   LOAD_WASM('assets/wasm/ngx-scanner-qrcode.wasm').subscribe();