Skip to content

WASM build issue #88

Description

@tarun-kodo

I'm trying to use ngx-scanner-qrcode@1.7.2

in .module.ts file used this

LOAD_WASM().subscribe(res => {
  console.log('LOAD_WASM',res)
});

getting these error

index.js:1 failed to asynchronously prepare wasm: CompileError: WebAssembly.instantiate(): Compiling or instantiating WebAssembly module violates the following Content Security policy directive because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: 

index.js:1 Aborted(CompileError: WebAssembly.instantiate(): Compiling or instantiating WebAssembly module violates the following Content Security policy directive because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: )
zone.js:690 Unhandled Promise rejection: Aborted(CompileError: WebAssembly.instantiate(): Compiling or instantiating WebAssembly module violates the following Content Security policy directive because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: ). Build with -sASSERTIONS for more info. ; Zone: <root> ; Task: Promise.then ; Value: RuntimeError: Aborted(CompileError: WebAssembly.instantiate(): Compiling or instantiating WebAssembly module violates the following Content Security policy directive because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: ). Build with -sASSERTIONS for more info

can't use unsafe-eval in script-src, as it is a production app

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions