From 22124ab31a4df9203d2495812140c68008d8ea56 Mon Sep 17 00:00:00 2001 From: Crowdedlight Date: Mon, 27 May 2024 13:32:10 +0200 Subject: [PATCH] Update 21_cargo_leptos.md (#102) added note to make sure wasm target is installed --- src/ssr/21_cargo_leptos.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ssr/21_cargo_leptos.md b/src/ssr/21_cargo_leptos.md index 53226f3..4da6038 100644 --- a/src/ssr/21_cargo_leptos.md +++ b/src/ssr/21_cargo_leptos.md @@ -24,6 +24,11 @@ or cargo leptos new --git leptos-rs/start-axum ``` +Make sure you've added the wasm32-unknown-unknown target so that Rust can compile your code to WebAssembly to run in the browser. +```bash +rustup target add wasm32-unknown-unknown +``` + Now `cd` into the directory you’ve created and run ```bash