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")


$ 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

serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
boolinator = "2.4"
hdk = { git = "", tag = "0.0.27-alpha1" }
holochain_wasm_utils = { git = "", tag = "0.0.27-alpha1" }
holochain_json_derive = "0.0.17"

path = "src/"
crate-type = ["cdylib"]