<p>I suggest using dcSpark's Cardano Multiplatform Lib: <a href="https://www.npmjs.com/package/@dcspark/cardano-multiplatform-lib-browser" rel="nofollow noreferrer">https://www.npmjs.com/package/@dcspark/cardano-multiplatform-lib-browser</a>.</p>

CC BY-SA 4.0
2023-03-27T01:19:13.857Z
2023-03-27T01:19:13.857Z
Falcon Stakepool
<p>I'm getting several compile errors as soon as I import <code>@emurgo/cardano-serialization-lib-browser</code> in my project, all of them similar to these:</p>
<pre><code>ERROR in ./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js 19251:82-105
Can't import the named export '__wbindgen_realloc' (imported as 'wasm') from default-exporting module (only default export is available)

ERROR in ./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js 19280:36-58
Can't import the named export '__wbindgen_malloc' (imported as 'wasm') from default-exporting module (only default export is available)

ERROR in ./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js 19280:60-83
Can't import the named export '__wbindgen_realloc' (imported as 'wasm') from default-exporting module (only default export is available)

ERROR in ./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js 19482:36-58
Can't import the named export '__wbindgen_malloc' (imported as 'wasm') from default-exporting module (only default export is available)

ERROR in ./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js 19482:60-83
Can't import the named export '__wbindgen_realloc' (imported as 'wasm') from default-exporting module (only default export is available)

ERROR in ./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js 19497:12-23
Can't import the named export 'memory' (imported as 'wasm') from default-exporting module (only default export is available)
</code></pre>
<p>Is there any other library I should use on a React project to handle wallet interaction?</p>

<wallet><cardano-serialization-lib><api><react>
Compile errors when importing Cardano Serialization Lib Browser in React
# Compile errors when importing Cardano Serialization Lib Browser in React

(Asked by: username_0 on 2022-10-27)

I'm getting several compile errors as soon as I import @emurgo/cardano-serialization-lib-browser in my project, all of them similar to these:
ERROR in ./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js 19251:82-105
Can't import the named export '__wbindgen_realloc' (imported as 'wasm') from default-exporting module (only default export is available)

ERROR in ./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js 19280:36-58
Can't import the named export '__wbindgen_malloc' (imported as 'wasm') from default-exporting module (only default export is available)

ERROR in ./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js 19280:60-83
Can't import the named export '__wbindgen_realloc' (imported as 'wasm') from default-exporting module (only default export is available)

ERROR in ./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js 19482:36-58
Can't import the named export '__wbindgen_malloc' (imported as 'wasm') from default-exporting module (only default export is available)

ERROR in ./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js 19482:60-83
Can't import the named export '__wbindgen_realloc' (imported as 'wasm') from default-exporting module (only default export is available)

ERROR in ./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js 19497:12-23
Can't import the named export 'memory' (imported as 'wasm') from default-exporting module (only default export is available)

Is there any other library I should use on a React project to handle wallet interaction?

**Tags:** wallet, cardano-serialization-lib, api, react

---

## 1 answers

### Answer by username_0 on 2023-03-27. Score: 0 | Accepted answer

I suggest using dcSpark's Cardano Multiplatform Lib: <https://www.npmjs.com/package/@dcspark/cardano-multiplatform-lib-browser>.


---

