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

Electron package related bug when load wasm file #535

Open
justid opened this issue Nov 17, 2022 · 1 comment
Open

Electron package related bug when load wasm file #535

justid opened this issue Nov 17, 2022 · 1 comment

Comments

@justid
Copy link

justid commented Nov 17, 2022

The original code filename = nodePath'normalize'; is buggy when using it used with electron package.
fs.readFile will take this to a wrong path on electron packaged.
For exmaple:
I have a packaged file path "'file:///C:/**/resources/app/dist/demo.wasm", fs.readFile will throw a error like:
"Error: ENOENT: no such file or directory, open 'C::\C:\resources\app\dist\demo.wasm"

Actually it's a bug with emscripten, I have created a pull request for emscripten emscripten-core/emscripten#18226)

@justid
Copy link
Author

justid commented Nov 17, 2022

it's fixed in emscripten (emscripten-core/emscripten#17915).
Maybe should sync to this project since these code is strongly related.

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

1 participant