Skip to content
Advertisement

Tag: emcc

Unable to import compiled javascript file from Emscripten for WebAssembly (C++ wrriten) to React

Hi I’ve compiled the C++ file via emcc (emscripten frontends). The output I expected is one .wasm file and .js file to implement javascript. I build React application which try to import WebAssembly via .js module like below. (./wasm/dist/my-module is .js module compiled by emcc) The problem is the console in chrome expresses error “file:// protocol not allow” which is

Advertisement