ProvableHQ / sdk

A Software Development Kit (SDK) for Zero-Knowledge Transactions
https://provable.tools
GNU General Public License v3.0
584 stars 468 forks source link

[Bug]wasm-pack build nodejs with error #885

Open gtmickey opened 3 months ago

gtmickey commented 3 months ago

Follow doc build wasm

1. NodeJS Module
This module has the features of the NodeJS environment built-in. It is single-threaded and unfortunately cannot yet be used to generate Aleo program executions or deployments due to current Aleo protocol limitations. It can however still be used to perform Aleo account, record, and program management tasks.

Build Instructions
wasm-pack build --release --target nodejs -- --features "serial" --no-default-features

with error

error: failed to generate bindings for import of `__wbindgen_placeholder__::__wbindgen_module`

Caused by:
    `wasm_bindgen::module` is currently only supported with `--target no-modules` and `--target web`
Error: Running the wasm-bindgen CLI
Caused by: Running the wasm-bindgen CLI
Caused by: failed to execute `wasm-bindgen`: exited with exit status: 1