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

BABEL_PARSE_ERROR #206

Open
Joburgess opened this issue Feb 22, 2025 · 1 comment
Open

BABEL_PARSE_ERROR #206

Joburgess opened this issue Feb 22, 2025 · 1 comment

Comments

@Joburgess
Copy link

{
code: 'BABEL_PARSE_ERROR',
reasonCode: 'AwaitNotInAsyncContext',
loc: Position { line: 1, column: 53810, index: 53810 },
pos: 53810,
syntaxPlugin: undefined
}
em++: error: '/mnt/d/Temp/emsdk/node/20.18.0_64bit/bin/node /mnt/d/Temp/emsdk/upstream/emscripten/node_modules/.bin/babel /tmp/emscripten_temp_mqy0rdve/zxing_reader.jso4.js -o /tmp/tmpv8vv5nejbabel.js --presets @babel/preset-env --config-file /tmp/tmpl4k87ueebabel_config.json' failed (returned 1)
gmake[2]: *** [CMakeFiles/zxing_reader.dir/build.make:101: /mnt/d/Temp/zxing-wasm-2.0.0/src/reader/zxing_reader.js] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/zxing_reader.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
 ELIFECYCLE  Command failed with exit code 1.

@Sec-ant
Copy link
Owner

Sec-ant commented Feb 23, 2025

I noticed this problem too, there seems already an issue: emscripten-core/emscripten#23687

It probably will be fixed by emscripten-core/emscripten#23704

Until that happens, you should be able to compile the wasm file with a <=3.1.74 version of emscripten.

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