-
-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pattern napi_bigint
not covered
#276
Comments
Seems like you are using non-stable NodeJS version. Please upgrade to latest LTS NodeJS and try again |
▶ cargo test
Compiling napi v0.5.1
error[E0004]: non-exhaustive patterns: `napi_bigint` not covered
--> ../.cargo/registry/src/github.com-1ecc6299db9ec823/napi-0.5.1/src/js_values/value_type.rs:46:11
|
46 | match value {
| ^^^^^ pattern `napi_bigint` not covered
|
::: ../target/debug/build/napi-sys-c52f7ba1a7f9b699/out/bindings.rs:358:5
|
358 | napi_bigint = 9,
| ----------- not covered
|
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
= note: the matched value is of type `napi_sys::napi_valuetype`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0004`.
error: could not compile `napi`.
To learn more, run the command again with --verbose. ▶ node -v
v14.15.0 No luck :(. To describe my problem more:
even ▶ cargo install
error: no packages found with binaries or examples my .toml for the node part: [package]
name = "read-media-node"
version = "0.1.0"
authors = ["Bengt Weiße <bengtler@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib"]
[dependencies]
napi = "0.5"
napi-derive = "0.5"
[build-dependencies]
napi-build = "0.2" |
How was nodejs installed? |
Via nvm
Nathaniel Daniel <notifications@github.com> schrieb am Di., 3. Nov. 2020,
02:58:
… How was nodejs installed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#276 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARI4YGEER22AXJE5LVUVA3SN5PU3ANCNFSM4THFIDFQ>
.
|
I have same with nidejs v12.13 |
It seems to be because the #[cfg(napi6)] isn't validated. I have no idea why though, I couldn't figure out what's supposed to set it true in the first place. |
This issue is expected to be fixed by #271 (comment) |
thanks for letting us know. |
The root cause of this problem is in some It may be temporary fixed by using |
If the above error is the only error that occurs while compiling, you might be able to work-around by using the master branch. I believe #278 works around this by throwing an error when it encounters types it can't understand. |
Also, |
Should be closed in #290 |
@Brooooooklyn is there already a new release with the fix? |
@KillerCodeMonkey Fixed in master branch but not released yet |
I am really new to rust and all that universe.
i tried to install napi and so on, but i get:
Thanks :)
The text was updated successfully, but these errors were encountered: