Open cyberb opened 1 year ago
hey @cyberb could you try again? a new version of the affected package was recently published and should account for this issue
tried installing 6.4.2 still the same issue
Compiling napi-sys v2.2.3
Compiling napi v2.13.3
Compiling matrix-sdk-crypto v0.4.1 (https://github.com/matrix-org/matrix-rust-sdk?rev=59d21d9683cd83196b6b4de6c605fb611d20d384#59d21d96)
Compiling futures v0.3.28
Compiling napi-derive v2.13.0
Failed to manipulate type def file: Os { code: 2, kind: NotFound, message: "No such file or directory" }
error[E0433]: failed to resolve: use of undeclared type `FromNapiValue`
--> src/request.rs:22:1
|
22 | #[napi]
| ^^^^^^^ use of undeclared type `FromNapiValue`
|
= note: this error originates in the attribute macro `napi` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this trait
|
15 + use napi::bindgen_prelude::FromNapiValue;
|
For more information about this error, try `rustc --explain E0433`.
error: could not compile `matrix-sdk-crypto-nodejs` (lib) due to previous error
Internal Error: Command failed: cargo build
at checkExecSyncError (child_process.js:790:11)
at Object.execSync (child_process.js:863:15)
at BuildCommand.<anonymous> (/build/bundle/programs/server/npm/node_modules/@napi-rs/cli/scripts/index.js:14602:26)
at Generator.next (<anonymous>)
at fulfilled (/build/bundle/programs/server/npm/node_modules/@napi-rs/cli/scripts/index.js:3423:58)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @rocket.chat/forked-matrix-sdk-crypto-nodejs@0.1.0-beta.12 postinstall: `node check-exists.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @rocket.chat/forked-matrix-sdk-crypto-nodejs@0.1.0-beta.12 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-10-18T08_55_55_976Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! meteor-dev-bundle@ install: `node npm-rebuild.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the meteor-dev-bundle@ install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-10-18T08_55_56_691Z-debug.log
The command '/bin/sh -c /build/build-rocketchat.sh' returned a non-zero code: 1
[0m
I am trying to run
npm install
on arm64 and it gives me the following error, 5.4.1 worked fine.at the same time build on amd64 is ok.
found this line here: https://github.com/RocketChat/matrix-rust-sdk-bindings/blob/fork-for-tmp-release/crates/matrix-sdk-crypto-nodejs/src/request.rs#L22
Is it because I am getting napi 2.13.2 instead of 2.0.0 as declared in cargo here: https://github.com/RocketChat/matrix-rust-sdk-bindings/blob/fork-for-tmp-release/crates/matrix-sdk-crypto-nodejs/Cargo.toml#L19