Skip to content

Commit

Permalink
doc: add a troubleshooting note
Browse files Browse the repository at this point in the history
  • Loading branch information
tguichaoua committed Jan 23, 2025
1 parent 4de5674 commit fad8af9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/next/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
<https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html#check-cfg-in-lintsrust-table>

0 comments on commit fad8af9

Please sign in to comment.