> This type of directive is not valid on components
## const_tag_invalid_placement
> `{@const}` must be the immediate child of `{#snippet}`, `{#if}`, `{:else if}`, `{:else}`, `{#each}`, `{:then}`, `{:catch}`, `<svelte:fragment>` or `<Component>`
## element_invalid_tag_name
> Expected valid tag name
## event_handler_invalid_modifier
> Valid event modifiers are %list%
@ -80,6 +92,10 @@
> `let:` directive at invalid position
## node_invalid_placement
> %thing% is invalid inside <%parent%>
## slot_snippet_conflict
> Cannot use `<slot>` syntax and `{@render ...}` tags in the same component. Migrate towards `{@render ...}` tags completely.
@ -128,6 +144,10 @@
> A component can only have one `<%name%>` element
## svelte_meta_invalid_content
> <%name%> cannot have children
## svelte_meta_invalid_tag
> Valid `<svelte:...>` tag names are %list%
@ -168,6 +188,18 @@
> `<svelte:self>` components can only exist inside `{#if}` blocks, `{#each}` blocks, `{#snippet}` blocks or slots passed to components
## textarea_invalid_content
> A `<textarea>` can have either a value attribute or (equivalently) child content, but not both
## title_illegal_attribute
> `<title>` cannot have attributes nor directives
## title_invalid_content
> `<title>` can only contain text and {tags}
## transition_duplicate
> Cannot use multiple `%type%:` directives on a single element
@ -175,3 +207,7 @@
## transition_conflict
> Cannot use `%type%:` alongside existing `%existing%:` directive
## void_element_invalid_content
> Void elements cannot have children or closing tags
e(node,"invalid_const_placement","{@const} must be the immediate child of {#snippet}, {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>");
}
/**
*Declarationcannotbeempty
*@param{null|number|NodeLike}node
@ -212,72 +194,6 @@ export function invalid_css_declaration(node) {
e(node,"invalid_css_declaration","Declaration cannot be empty");
e(node,"const_tag_invalid_placement","`{@const}` must be the immediate child of `{#snippet}`, `{#if}`, `{:else if}`, `{:else}`, `{#each}`, `{:then}`, `{:catch}`, `<svelte:fragment>` or `<Component>`");
}
/**
*Expectedvalidtagname
*@param{null|number|NodeLike}node
*@returns{never}
*/
exportfunctionelement_invalid_tag_name(node){
e(node,"element_invalid_tag_name","Expected valid tag name");
}
/**
*Valideventmodifiersare%list%
*@param{null|number|NodeLike}node
@ -1123,6 +1066,17 @@ export function let_directive_invalid_placement(node) {
e(node,"let_directive_invalid_placement","`let:` directive at invalid position");
e(node,"svelte_meta_invalid_content",`<${name}> cannot have children`);
}
/**
*Valid`<svelte:...>`tagnamesare%list%
*@param{null|number|NodeLike}node
@ -1326,6 +1290,33 @@ export function svelte_self_invalid_placement(node) {
e(node,"svelte_self_invalid_placement","`<svelte:self>` components can only exist inside `{#if}` blocks, `{#each}` blocks, `{#snippet}` blocks or slots passed to components");
"message":"{@const} must be the immediate child of {#snippet}, {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>",
"code":"const_tag_invalid_placement",
"message":"`{@const}` must be the immediate child of `{#snippet}`, `{#if}`, `{:else if}`, `{:else}`, `{#each}`, `{:then}`, `{:catch}`, `<svelte:fragment>` or `<Component>`",
"message":"{@const} must be the immediate child of {#snippet}, {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>",
"code":"const_tag_invalid_placement",
"message":"`{@const}` must be the immediate child of `{#snippet}`, `{#if}`, `{:else if}`, `{:else}`, `{#each}`, `{:then}`, `{:catch}`, `<svelte:fragment>` or `<Component>`",