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

wasm-bindgen upgrades and rust reference types #3350

Open
scsmithr opened this issue Dec 9, 2024 · 0 comments
Open

wasm-bindgen upgrades and rust reference types #3350

scsmithr opened this issue Dec 9, 2024 · 0 comments
Labels
chore DX, infra etc that's not build or CI related wasm

Comments

@scsmithr
Copy link
Member

scsmithr commented Dec 9, 2024

Updating to wasm-bindgen 0.2.97 introduced issues with being able to use the wasm library in a webpack based project.

Specifically this error:

 ⨯ ../../glaredb/crates/rayexec_wasm/pkg/rayexec_wasm_bg.wasm
Module parse failed: Internal failure: parseVec could not cast the value
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
Error: Internal failure: parseVec could not cast the value
Import trace for requested module:
../../glaredb/crates/rayexec_wasm/pkg/rayexec_wasm_bg.wasm
../../glaredb/crates/rayexec_wasm/pkg/rayexec_wasm.js
./src/components/editor/Editor.tsx
./src/components/editor/DynamicEditor.tsx

Related issues:

The issue should have been fixed in webpack 5.97.1, but after upgrading, the issue still persisted.

I'm unsure if there's something else that needs to be updated, but in the meantime, I just downgraded wasm-bindgen to 0.2.92 and it's confirmed working again.

@scsmithr scsmithr added chore DX, infra etc that's not build or CI related wasm labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore DX, infra etc that's not build or CI related wasm
Projects
None yet
Development

No branches or pull requests

1 participant