Closed BeepIsla closed 10 months ago
Hi, thanks for your detailed issue. Should be fixed now in newest commit.
Btw I tried to publish the WASM with web-pack publish: https://www.npmjs.com/package/demoparser2. Does this work? I'm very new to JS ecosystem so not quite sure. Always having some import errors when I try to do anything :smile: .
Thanks for the fix!
Trying the demoparser2 package you linked kinda works. Due to my project setup (SvelteKit) I have to use vite-plugin-wasm-pack (But specifically version 0.1.11 due to https://github.com/nshen/vite-plugin-wasm-pack/issues/20) and then edit the demoparser2/package.json
and add "type": "module"
.
Doing all of that seems to work in my specific case, not sure about other cases or other frameworks.
The above works in my development environment but to build the app I also have to add "main": "demoparser2.js"
to the demoparser2/package.json
else the build fails saying it cannot find the module.
Thanks again for the wasm fix, will close the issue since thats resolved now!
Trying to parse this demo: https://www.faceit.com/en/cs2/room/1-80dac4e6-90b8-44c5-b585-5b0e7e6f2f38
NodeJS: 👍
Python: 👍
wasm using your example: 👎 https://github.com/LaihoE/demoparser-wasm-demo
I also tried manually rebuilding the wasm file with wasm-pack but the error stayed the same.