-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Unable to load wasm in electron. #11671
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
Comments
I think this may be what the "webview" environment is for. Building with
|
Building with |
Ok, then we need to debug why that error is thrown. Some logging around that statement should help. (I don't have an electron environment handy myself.) |
Looking at the javascript file generated by
|
That means the lines right above it all failed. So it did not recognize this environment as any of the ones it knows. It should probably detect it as |
Building with
Now when I build with |
I see the docs in settings.js say
So |
Building with |
I was trying to run my app in electron and got the below warnings and errors during start up. The
Strata-wasm.js
is the javascript file generated by theem++
build using emscripten 1.39.19.After some investigation I noticed it was failing due to the
isFileURI
check within the auto generatedStrata-wasm.js
file, because we were running in electron and the wasm file was a local file within the electron application.Currently our workaround for this issue is to modify the
isFileURI
to always return false then everything works as expected in electron.The text was updated successfully, but these errors were encountered: