DEV Community

Discussion on: WASM in Create-React-App 4 in 5mn (without ejecting)

Collapse
 
andrewjschoen profile image
Andrew Schoen

Thanks for this tutorial! I set up according to these instructions, but swapped out my own library instead of the greeter one (which exports a struct I want to use). I am getting an error right now, but I am not sure exactly if it has something to do with wasm bindings, craco, webpack, or some combination of the above. Basically, the error I get is:

./node_modules/@my_scope/my_pkg/my_pkg_lib_bg.js
Attempted import error: '__wbg_jsmystruct_free' is not exported from './my_pkg_lib_bg.wasm' (imported as 'wasm').
Enter fullscreen mode Exit fullscreen mode

Any thoughts on what might be causing this? Thanks again!