magic-copy icon indicating copy to clipboard operation
magic-copy copied to clipboard

The compiled source code cannot run properly. ort.min.js:1802 wasm streaming compile failed: LinkError: WebAssembly.instantiate(): Import #36 module="a" function="K": function import requires a callable

Open sunny-fun opened this issue 1 year ago • 2 comments

Hello, I downloaded the source code of your open-source project magic-copy from releases/tag/v1.2.0 and installed dependencies locally. After running npm run watch and adding the plugin to Google Chrome, I found that it doesn't work properly. It shows an error like the one in the screenshot below. Snipaste_2024-02-19_14-00-40

However, if I download the compiled magic-copy-chrome.zip from releases/tag/v1.2.0 and install it directly in the browser, it works fine. I also checked the format of onnxruntime-web inside sandbox.js and found that they are different. Could this be an issue with the version of onnxruntime-web? I tried upgrading to the latest version of onnxruntime-web, but the issue persists. Snipaste_2024-02-19_14-06-28

sunny-fun avatar Feb 19 '24 06:02 sunny-fun

Yeah this sounds like something broken with the onnxruntime-web API. Does it work at 08d78db9a4aafb89302b0a6d5e813a50672fc2a6? Just one before the onnxruntime-web version bump.

kevmo314 avatar Feb 21 '24 15:02 kevmo314

Yeah this sounds like something broken with the onnxruntime-web API. Does it work at 08d78db9a4aafb89302b0a6d5e813a50672fc2a6? Just one before the onnxruntime-web version bump.

3Q, It's been solved, but I didn't delve into what caused it. It seems to be the dependency problem. The npm ci installation can run normally, and the npm i installation will make mistakes

sunny-fun avatar Feb 21 '24 17:02 sunny-fun