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

Please Help : Why i show this error when i tray import the package in Angular 16 #14

Closed
digylog opened this issue Oct 5, 2023 · 1 comment
Labels
question Further information is requested

Comments

@digylog
Copy link

digylog commented Oct 5, 2023

iwhen i call import { scanImageData } from '@undecaf/zbar-wasm'; and use return scanImageData(imageData)
.then(symbols => { ...
I show this error, how can fixe that please
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Not allowed to load local resource: file:///D://node_modules/@undecaf/zbar-wasm/dist/zbar.wasm
Aborted([object ProgressEvent]). Build with -sASSERTIONS for more info.
RuntimeError: Aborted([object ProgressEvent]). Build with -sASSERTIONS for more info.
bug

@digylog digylog added the bug Something isn't working label Oct 5, 2023
@undecaf undecaf added question Further information is requested and removed bug Something isn't working labels Oct 6, 2023
@undecaf
Copy link
Owner

undecaf commented Oct 6, 2023

This is a general issue unrelated to zbar-wasm: your browser does not allow to load zbar.wasm as file: resource but only as http: or https: resource. Therefore all your resources including the content of D:\node_modules must be served by an HTTP server. Please refer to the Angular documentation in order to find out how to achieve this.

For details, see here: https://support.google.com/chrome/thread/162698059/not-allowed-to-load-local-resource-how-to-fix-this?hl=en

@undecaf undecaf closed this as completed Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants