From fad8af924415bffc16f78897f41f88d35a0e8c61 Mon Sep 17 00:00:00 2001 From: Tristan Guichaoua Date: Thu, 23 Jan 2025 10:39:41 +0100 Subject: [PATCH] doc: add a troubleshooting note --- docs/next/troubleshooting.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/next/troubleshooting.md b/docs/next/troubleshooting.md index 7dbd787f..db17e395 100644 --- a/docs/next/troubleshooting.md +++ b/docs/next/troubleshooting.md @@ -18,3 +18,18 @@ console_error_panic_hook::set_once(); ## Debugging using DWARF + WASM > Note: This section is a stub. Help us write this section! + +## unexpected `cfg` condition name: `sycamore_force_ssr` + +Sycamore uses a custom cfg (`sycamore_force_ssr`) to force the SSR mode. Because +the compiler doesn't know about custom cfg it will emit warnings. To disables +those warnings, add the following lints configuration in the `Cargo.toml` file +of your project. + +```toml +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ["cfg(sycamore_force_ssr)"] } +``` + +More information here: +