You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Following the 4.2 exercise solution at the bottom of the page, the greet() keeps alerting Hello, wasm-game-of-life! instead of Hello, Davide!.
To Reproduce
I've followed the tutorial I believe to the letter. To solve the final exercise, I've implemented wasm-game-of-life/src/lib.rs as:
Describe the bug
Following the 4.2 exercise solution at the bottom of the page, the
greet()
keeps alertingHello, wasm-game-of-life!
instead ofHello, Davide!
.To Reproduce
I've followed the tutorial I believe to the letter. To solve the final exercise, I've implemented
wasm-game-of-life/src/lib.rs
as:Also
wasm-game-of-life/www/index.js
now contains:I've then run
wasm-pack build
to rebuild the wasm package, and to be 100% sure, I've closed and re-opened the local server vianpm run start
.Expected behavior
http://localhost:8080
should pop up an alert sayingHello, Davide!
, instead it keeps sayingHello, wasm-game-of-life!
I've made sure that
package.json
contains the"dependencies": { "wasm-game-of-life": "file:../pkg" },
andnpm install
has run thereafter.Additional context
rustc 1.66.0, wasm-bindgen 0.2.63.
Thank you!
The text was updated successfully, but these errors were encountered: