-
Notifications
You must be signed in to change notification settings - Fork 1
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
doesn't work in browser #2
Comments
Ddi you try following the instructions? What is your overall project and webpack configuration? |
this is my error: ERROR in ./node_modules/expat-wasm/lib/expat.wasm |
I'm looking into this. webpack/webpack#7352 seems relevant |
Now I get: evented.js:6 Uncaught (in promise) TypeError: Cannot create property 'onRuntimeInitialized' on string '1c1d0270774c5f18efd667e84754f919.wasm' I pretty much have no idea how any of this stuff works! But I'll poke around some more and try to do some troubleshooting and make a repro case. |
I hacked this to work, and I'm not terribly proud of the solution, which included base64-encoding the .wasm file and embedding it into a node module. It may be that WASM ESM integration may make this better one day. The goal is a consistent way of using WASM-based npm packages built with emscripten in both node and on the web. |
Hello. I love the idea of leveraging expat in JS, but I want to use it in the browser. I tried bundling this module with Webpack, but I get this error
The text was updated successfully, but these errors were encountered: