yewstack / yew-wasm-pack-template

A template for starting a Yew project to be used with wasm-pack
https://todomvc.yew.rs/
Apache License 2.0
118 stars 41 forks source link

"not all trait items implemented" rust error when running yarn run build #16

Closed ducks closed 4 years ago

ducks commented 4 years ago

Howdy,

I cloned the repo, ran yarn install and then yarn run build and received the following rust error:

error[E0046]: not all trait items implemented, missing: `change`
  --> src/app.rs:46:1
   |
46 | impl Component for App {
   | ^^^^^^^^^^^^^^^^^^^^^^ missing `change` in implementation
   |
   = help: implement the missing item: `fn change(&mut self, _: <Self as yew::html::Component>::Properties) -> bool { todo!() }`

Implementing the missing method fixes the issue and the crate then compiles and yarn run start:dev starts successfully.

PR incoming.