Holochain Forum

Host module doesn\'t export function with name `hc_crypto`

When running js tests, I get this error:

 internal error in Neon module: Failed to instantiate module: 
 Function("host module doesn\'t export function with name hc_crypto")

info:

$ hc --version
hc 0.0.27-alpha1

The Rust library is also of 0.0.27-alpha1 version

Arch Linux.

How to fix that? What causes it?

To what version of the HDK does your Zome’s Cargo.toml point to? Is that 0.0.27 too?
If so, try running

cargo clean
cargo update
cargo build

in the zome directory.

1 Like

Yes, to 0.0.27

That didn’t help

No, it didn’t


[dependencies]
serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
boolinator = "2.4"
hdk = { git = "https://github.com/holochain/holochain-rust", tag = "0.0.27-alpha1" }
holochain_wasm_utils = { git = "https://github.com/holochain/holochain-rust", tag = "0.0.27-alpha1" }
holochain_json_derive = "0.0.17"

[lib]
path = "src/lib.rs"
crate-type = ["cdylib"]