Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

[typescript] npm run build , error with serde #648

Open
scenaristeur opened this issue Sep 22, 2023 · 2 comments
Open

[typescript] npm run build , error with serde #648

scenaristeur opened this issue Sep 22, 2023 · 2 comments

Comments

@scenaristeur
Copy link

scenaristeur commented Sep 22, 2023

HI, i've tried npm run build but i got
rustc --version
rustc 1.72.1 (d5c2e9c34 2023-09-13)

[... more on top but i can't see it in the terminal]

    |                         ---------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:791:13
    |
791 |             Ok(())
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:795:13
    |
795 |             Ok(Content::Seq(self.elements))
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
    |
280 |             Err(err) => return Err(err),
    |                                ^^^ help: a local variable with a similar name exists: `err`
    |
   ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:815:25
    |
815 |             let value = tri!(value.serialize(ContentSerializer::<E>::new()));
    |                         ---------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:817:13
    |
817 |             Ok(())
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:821:13
    |
821 |             Ok(Content::Tuple(self.elements))
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
    |
280 |             Err(err) => return Err(err),
    |                                ^^^ help: a local variable with a similar name exists: `err`
    |
   ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:842:25
    |
842 |             let value = tri!(value.serialize(ContentSerializer::<E>::new()));
    |                         ---------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:844:13
    |
844 |             Ok(())
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:848:13
    |
848 |             Ok(Content::TupleStruct(self.name, self.fields))
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
    |
280 |             Err(err) => return Err(err),
    |                                ^^^ help: a local variable with a similar name exists: `err`
    |
   ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:871:25
    |
871 |             let value = tri!(value.serialize(ContentSerializer::<E>::new()));
    |                         ---------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:873:13
    |
873 |             Ok(())
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:877:13
    |
877 |             Ok(Content::TupleVariant(
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
    |
280 |             Err(err) => return Err(err),
    |                                ^^^ help: a local variable with a similar name exists: `err`
    |
   ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:903:23
    |
903 |             let key = tri!(key.serialize(ContentSerializer::<E>::new()));
    |                       -------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:905:13
    |
905 |             Ok(())
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
    |
280 |             Err(err) => return Err(err),
    |                                ^^^ help: a local variable with a similar name exists: `err`
    |
   ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:916:25
    |
916 |             let value = tri!(value.serialize(ContentSerializer::<E>::new()));
    |                         ---------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:918:13
    |
918 |             Ok(())
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:922:13
    |
922 |             Ok(Content::Map(self.entries))
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
    |
280 |             Err(err) => return Err(err),
    |                                ^^^ help: a local variable with a similar name exists: `err`
    |
   ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:930:23
    |
930 |             let key = tri!(key.serialize(ContentSerializer::<E>::new()));
    |                       -------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
    |
280 |             Err(err) => return Err(err),
    |                                ^^^ help: a local variable with a similar name exists: `err`
    |
   ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:931:25
    |
931 |             let value = tri!(value.serialize(ContentSerializer::<E>::new()));
    |                         ---------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:933:13
    |
933 |             Ok(())
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
    |
280 |             Err(err) => return Err(err),
    |                                ^^^ help: a local variable with a similar name exists: `err`
    |
   ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:954:25
    |
954 |             let value = tri!(value.serialize(ContentSerializer::<E>::new()));
    |                         ---------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:956:13
    |
956 |             Ok(())
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:960:13
    |
960 |             Ok(Content::Struct(self.name, self.fields))
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
    |
280 |             Err(err) => return Err(err),
    |                                ^^^ help: a local variable with a similar name exists: `err`
    |
   ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:983:25
    |
983 |             let value = tri!(value.serialize(ContentSerializer::<E>::new()));
    |                         ---------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:985:13
    |
985 |             Ok(())
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:989:13
    |
989 |             Ok(Content::StructVariant(
    |             ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1032:9
     |
1032 |         Err(Self::bad_type(Unsupported::Boolean))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1036:9
     |
1036 |         Err(Self::bad_type(Unsupported::Integer))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1040:9
     |
1040 |         Err(Self::bad_type(Unsupported::Integer))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1044:9
     |
1044 |         Err(Self::bad_type(Unsupported::Integer))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1048:9
     |
1048 |         Err(Self::bad_type(Unsupported::Integer))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1052:9
     |
1052 |         Err(Self::bad_type(Unsupported::Integer))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1056:9
     |
1056 |         Err(Self::bad_type(Unsupported::Integer))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1060:9
     |
1060 |         Err(Self::bad_type(Unsupported::Integer))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1064:9
     |
1064 |         Err(Self::bad_type(Unsupported::Integer))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1068:9
     |
1068 |         Err(Self::bad_type(Unsupported::Float))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1072:9
     |
1072 |         Err(Self::bad_type(Unsupported::Float))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1076:9
     |
1076 |         Err(Self::bad_type(Unsupported::Char))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1080:9
     |
1080 |         Err(Self::bad_type(Unsupported::String))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1084:9
     |
1084 |         Err(Self::bad_type(Unsupported::ByteArray))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1088:9
     |
1088 |         Ok(())
     |         ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1099:9
     |
1099 |         Ok(())
     |         ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1103:9
     |
1103 |         Err(Self::bad_type(Unsupported::UnitStruct))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1112:9
     |
1112 |         Err(Self::bad_type(Unsupported::Enum))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
     |
280  |             Err(err) => return Err(err),
     |                                ^^^ help: a local variable with a similar name exists: `err`
     |
    ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1136:9
     |
1136 |         tri!(self.0.serialize_key(variant));
     |         ----------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1141:9
     |
1141 |         Err(Self::bad_type(Unsupported::Sequence))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1145:9
     |
1145 |         Err(Self::bad_type(Unsupported::Tuple))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1153:9
     |
1153 |         Err(Self::bad_type(Unsupported::TupleStruct))
     |         ^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
     |
280  |             Err(err) => return Err(err),
     |                                ^^^ help: a local variable with a similar name exists: `err`
     |
    ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1163:9
     |
1163 |         tri!(self.0.serialize_key(variant));
     |         ----------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1164:9
     |
1164 |         Ok(FlatMapSerializeTupleVariantAsMapValue::new(self.0))
     |         ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1168:9
     |
1168 |         Ok(FlatMapSerializeMap(self.0))
     |         ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1176:9
     |
1176 |         Ok(FlatMapSerializeStruct(self.0))
     |         ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
     |
280  |             Err(err) => return Err(err),
     |                                ^^^ help: a local variable with a similar name exists: `err`
     |
    ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1186:9
     |
1186 |         tri!(self.0.serialize_key(inner_variant));
     |         ----------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1187:9
     |
1187 |         Ok(FlatMapSerializeStructVariantAsMapValue::new(
     |         ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1232:9
     |
1232 |         Ok(())
     |         ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1259:9
     |
1259 |         Ok(())
     |         ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
     |
280  |             Err(err) => return Err(err),
     |                                ^^^ help: a local variable with a similar name exists: `err`
     |
    ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1296:21
     |
1296 |         let value = tri!(value.serialize(ContentSerializer::<M::Error>::new()));
     |                     ----------------------------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1298:9
     |
1298 |         Ok(())
     |         ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
     |
280  |             Err(err) => return Err(err),
     |                                ^^^ help: a local variable with a similar name exists: `err`
     |
    ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1302:9
     |
1302 |         tri!(self.map.serialize_value(&Content::Seq(self.fields)));
     |         ---------------------------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1303:9
     |
1303 |         Ok(())
     |         ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
     |
280  |             Err(err) => return Err(err),
     |                                ^^^ help: a local variable with a similar name exists: `err`
     |
    ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1346:21
     |
1346 |         let value = tri!(value.serialize(ContentSerializer::<M::Error>::new()));
     |                     ----------------------------------------------------------- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1348:9
     |
1348 |         Ok(())
     |         ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/lib.rs:280:32
     |
280  |               Err(err) => return Err(err),
     |                                  ^^^ help: a local variable with a similar name exists: `err`
     |
    ::: /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1352:9
     |
1352 | /         tri!(self
1353 | |             .map
1354 | |             .serialize_value(&Content::Struct(self.name, self.fields)));
     | |_______________________________________________________________________- in this macro invocation
     |
     = note: this error originates in the macro `tri` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /home/smag/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.188/src/private/ser.rs:1355:9
     |
1355 |         Ok(())
     |         ^^ not found in this scope

Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433, E0463, E0531.
error: could not compile `serde` (lib) due to 5098 previous errors
❌ 1 script failed.

Any idea ? Could it be related to serde-rs/serde#2537 ?

running CHROMEDRIVER=/path/to/chromedriver cargo test --target wasm32-unknown-unknown
as mentionned here https://github.com/subconsciousnetwork/noosphere/blob/main/rust/README.md#build-examples
gives me the error in the error.txt file
errors.txt

running rustup target add wasm32-unknown-unknown

seems now to be ok for the chromedriver test, and npm run build is ok too !

@scenaristeur
Copy link
Author

and npm run serve too but the ui is always waiting even with an IPFSdaemon running (i've changed ipfsapi to ipfsApi = 'http://127.0.0.1:5001'; according to my ipfs api )

image

@cdata
Copy link
Collaborator

cdata commented Oct 11, 2023

Hey there, sorry for the late response on this bug. I just tried to reproduce but no dice :/ we run these builds in our CI at every change too, so it's probably something related to your local environment.

Could you try popping up to the root of the project folder and running cargo build there?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants