ngx-scanner-qrcode
ngx-scanner-qrcode copied to clipboard
Build with -sASSERTIONS
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.
@keminkasundra I have also noticed this problem. I will check and try to fix this error soon. Thank you for using this library. @@
Any updates on this issue ?🏃🏻♂️
@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
@all Please provide details which angular version has this error.
@ALL Please provide details which angular version has this error.
Hi @id1945, I am using Angular: 13.0.3
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
Hi @id1945 any update on this issue? My Angular version is 17
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"?> <configuration> <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> </customHeaders> </httpProtocol> <staticContent> <mimeMap fileExtension=".wasm" mimeType="application/wasm" /> </staticContent> </system.webServer> </configuration>
this is the important line
<mimeMap fileExtension=".wasm" mimeType="application/wasm" />
Hello, I'm getting the same error, is your problem solved?