Open nphias opened 10 months ago
That's probably an incompatibility between Holochain and the HDK/HDI of the zomes. Please double check that they match. If that is the source of the error, I can't do anything about this uninformative error in tryorama, but we could look at it in Holochain.
i found that by adding the package chrono = { version = "0.4" } to my cargo.toml caused the error
i am using the package for timestamp conversions when i did this .. i no longer get the error: chrono = { version = "0.4" default-feature = false} related to this bug: https://github.com/holochain/holochain/issues/1512
an error message that said ..: check your dependency crates are wasm compatible .. would have saved me a few hours
Right, yeah! I've seen that too but didn't remember.
I just ran into this again. On Discord it was said to pin chrono to 0.4.6
but that no longer works due to incompatibility with serde. So your solution works, disabling default features which excludes wasm-bindgen.
i assume this means some problem with the wasm build.. but better error handling and info is needed
mac os ventura "dependencies": { "@msgpack/msgpack": "^2.7.0", "@holochain/client": "^0.16.2", "@holochain/tryorama": "^0.15.1", "js-base64": "3.7.5", "typescript": "^4.9.4", "vitest": "^0.28.4" },
stderr | .test.ts > create and read zome error occurred during test run: internal_error: Conductor returned an error while using a ConductorApi: RibosomeError(WasmRuntimeError(RuntimeError { source: User(WasmError { file: "crates/holochain/src/core/ribosome/real_ribosome.rs", line: 441, error: Compile("Error while importing \"__wbindgen_placeholder\".\"wbindgen_describe\": unknown import. Expected Function(FunctionType { params: [I32], results: [] })") }), wasm_trace: [], native_trace: 0: