0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 01:11:24 +01:00
svelte/documentation/docs/98-reference/.generated/shared-errors.md
Simon H 4578d4f25a
docs: generate pages for compiler/runtime warnings/errors (#13557)
* docs: generate pages for compiler/runtime warnings/errors

Ideally each warning has accompanying details so that it doesn't look so empty on the final site, but that can happen separately

* fix

* sort alphabetically, code ticks for headings

* only uppercase first word

* regenerate

* generate codes using [!NOTE], remove any backticks and escape `<` characters

* some prose preceeding the list of compiler warnings

* bring over prose from Svelte 4 a11y warnings

* fix

* lint

* remove backticks from headers, now that they are getting rendered

* Revert "remove backticks from headers, now that they are getting rendered"

This reverts commit c295281848.

* back to normal headers/code blocks

* fix

* separate authored from generated stuff

* newlines

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2024-10-10 20:05:38 -04:00

465 B

invalid_default_snippet

Cannot use `{@render children(...)}` if the parent component uses `let:` directives. Consider using a named snippet instead

lifecycle_outside_component

`%name%(...)` can only be used during component initialisation

store_invalid_shape

`%name%` is not a store with a `subscribe` method

svelte_element_invalid_this_value

The `this` prop on `<svelte:element>` must be a string, if defined