Skip to content

No method named to_string found for struct with from_wasm_abi #56

@wjthieme

Description

@wjthieme
no method named `to_string` found for struct `serde_wasm_bindgen::error::Error` in the current scope
items from traits can only be used if the trait is in scope

Example of working code

#[derive(Serialize, Deserialize, Tsify)]
#[serde(rename_all = "camelCase")]
#[tsify(into_wasm_abi)]
pub struct Foo {
  pub value: u128
}

Example of non-working code

#[derive(Serialize, Deserialize, Tsify)]
#[serde(rename_all = "camelCase")]
#[tsify(into_wasm_abi, from_wasm_abi)]
pub struct Foo {
  pub value: u128
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions