@matrix-org/matrix-sdk-crypto-wasm' does not provide an export named 'CollectStrategy'
when calling client.initRustCrypto()
(Node)
#4660
Labels
A-Element-R
Issues affecting the port of Element's crypto layer to Rust
Hello,
I'm trying to write a Matrix bot in Node. I've got everything working, except the encryption. I followed the docs, but when I'm trying to call
client.initRustCrypto()
, I'm getting the following error in the console:I've got
type: module
in my package.json and also the following options in mytsconfig.json
:I tried adding
--experimental-wasm-modules --conditions=wasm-esm
flags tonode
, but to no avail 😕npm list matrix-js-sdk @matrix-org/matrix-sdk-crypto-wasm
reports the following versions:└─┬ matrix-js-sdk@36.0.0
└── @matrix-org/matrix-sdk-crypto-wasm@12.1.0
which I think is correct. I'm on
Node v22.13.0
Does anyone have any idea why I might be getting that error?
Many thanks in advance.
Peter.
The text was updated successfully, but these errors were encountered: