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

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 #100

Open
sunny-fun opened this issue Feb 19, 2024 · 2 comments

Comments

@sunny-fun
Copy link

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

@kevmo314
Copy link
Owner

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

@sunny-fun
Copy link
Author

Yeah this sounds like something broken with the onnxruntime-web API. Does it work at 08d78db? 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

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

2 participants