ngx-scanner-qrcode icon indicating copy to clipboard operation
ngx-scanner-qrcode copied to clipboard

Build with -sASSERTIONS

Open keminkasundra opened this issue 1 year ago • 9 comments

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 avatar Apr 12 '23 13:04 keminkasundra

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

id1945 avatar Apr 13 '23 07:04 id1945

Any updates on this issue ?🏃🏻‍♂️

MohammedAlsuliman avatar Jul 27 '23 15:07 MohammedAlsuliman

@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

kapilv24 avatar Aug 15 '23 08:08 kapilv24

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

id1945 avatar Oct 28 '23 04:10 id1945

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

Hi @id1945, I am using Angular: 13.0.3

mukund-9652 avatar Oct 31 '23 12:10 mukund-9652

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

goku7995 avatar Nov 27 '23 06:11 goku7995

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

penihel avatar Jan 09 '24 23:01 penihel

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" />

penihel avatar Jan 10 '24 11:01 penihel

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

RSErenAkgoz avatar Mar 01 '24 08:03 RSErenAkgoz