new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Svelte · Language · all subjects

core/errors

78 notes in this subject, read out of this brain and free to use. This is page 2 of 2.

rune_invalid_name error

The given name is not a valid rune. Valid runes are limited to Svelte's rune set.

rune_invalid_spread error

A rune cannot be called with a spread argument.

rune_invalid_usage error

Cannot use a rune in non-runes mode. Runes like $state, $derived, etc. are only available when the component is using runes mode.

rune_missing_parentheses error

Cannot use rune without parentheses. Runes must be called as functions with parentheses.

rune_removed error

The specified rune has been removed from Svelte and is no longer available.

rune_renamed error

A rune name has been changed. The error message indicates what the rune is now called.

snippet_invalid_export error

An exported snippet can only reference things declared in a <script module>, or other exportable snippets. It cannot reference variables from the component-level <script>.

snippet_invalid_rest_parameter error

Snippets do not support rest parameters; use an array instead.

snippet_parameter_assignment error

Cannot reassign or bind to snippet parameter.

snippet_shadowing_prop error

A snippet with the same name as a prop will shadow that prop, which may be unintended.

animation_invalid_placement error

An element that uses the animate: directive must be the only child of a keyed {#each ...} block. Using animate: outside this specific context causes a compile error.

animation_missing_key error

An element that uses the animate: directive must be the only child of a keyed {#each ...} block. Did you forget to add a key to your each block? This error occurs when the each block lacks a key expression.

attribute_invalid_sequence_expression error

Comma-separated expressions are not allowed as attribute/directive values in runes mode, unless wrapped in parentheses. For example, <div class={size, color}> is invalid. Instead use <div class={[size, color]}> or <div class={(size, color)}> if the comma operator is intentionally needed.

bind_group_invalid_expression error

bind:group can only bind to an Identifier or MemberExpression, not other expression types.

bind_invalid_expression error

Can only bind to an Identifier or MemberExpression or a {get, set} pair. Other expression types cannot be used with bind directives.

bind_invalid_value error

Can only bind to state or props. Attempting to bind to other variables causes a compile error.

bindable_invalid_location error

$bindable() can only be used inside a $props() declaration.

const_tag_invalid_placement error

{@const} must be the immediate child of {#snippet}, {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, <svelte:fragment>, <svelte:boundary> or <Component>. Using {@const} in other locations causes a compile error.

Give your agent this brain