Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with -sASSERTIONS #25

Open
keminkasundra opened this issue Apr 12, 2023 · 9 comments
Open

Build with -sASSERTIONS #25

keminkasundra opened this issue Apr 12, 2023 · 9 comments

Comments

@keminkasundra
Copy link

keminkasundra commented Apr 12, 2023

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
Copy link
Owner

id1945 commented Apr 13, 2023

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

@MohammedAlsuliman
Copy link

Any updates on this issue ?🏃🏻‍♂️

@kapilv24
Copy link

@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
Copy link
Owner

id1945 commented Oct 28, 2023

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

@mukund-9652
Copy link

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

Hi @id1945, I am using Angular: 13.0.3

@goku7995
Copy link

goku7995 commented Nov 27, 2023

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
Copy link

penihel commented Jan 9, 2024

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

@penihel
Copy link

penihel commented Jan 10, 2024

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

@RSErenAkgoz
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants