Plume-org / Plume

Federated blogging application, thanks to ActivityPub (now on https://git.joinplu.me/ — this is just a mirror)
https://joinplu.me
GNU Affero General Public License v3.0
2.08k stars 129 forks source link

Compile error: unresolved import `web_sys::ClipboardEvent` #1082

Closed starsareintherose closed 1 year ago

starsareintherose commented 1 year ago

compile error

``` error[E0432]: unresolved import `web_sys::ClipboardEvent` --> plume-front/src/editor.rs:7:22 | 7 | console, window, ClipboardEvent, Element, Event, FocusEvent, HtmlAnchorElement, HtmlDocument, | ^^^^^^^^^^^^^^ | | | no `ClipboardEvent` in the root | help: a similar name exists in the module: `KeyboardEvent` error[E0277]: the size for values of type `str` cannot be known at compilation time --> plume-front/src/editor.rs:262:23 | 262 | if let Ok(data) = data.get_data("text") { | ^^^^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `str` = note: all local variables must have a statically known size = help: unsized locals are gated as an unstable feature error[E0277]: the size for values of type `str` cannot be known at compilation time --> plume-front/src/editor.rs:262:20 | 262 | if let Ok(data) = data.get_data("text") { | ^^^^^^^^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `str` note: required by a bound in `Ok` Some errors have detailed explanations: E0277, E0432. For more information about an error, try `rustc --explain E0277`. error: could not compile `plume-front` due to 3 previous errors Error: Compiling your crate to WebAssembly failed Caused by: failed to execute `cargo build`: exited with exit status: 101 full command: "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown" ```