> `$bindable()` can only be used inside a `$props()` declaration
## invalid_binding
> Cannot bind to %thing%
## invalid_derived_export
> Cannot export derived state from a module. To expose the current derived value, export a function returning its value
## invalid_each_assignment
> Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`)
## invalid_effect_location
> `$effect()` can only be used as an expression statement
## invalid_host_location
> `$host()` can only be used inside custom element component instances
## invalid_legacy_export
> Cannot use `export let` in runes mode — use $props instead
## invalid_legacy_props
> Cannot use `$$props` in runes mode
## invalid_legacy_reactive_statement
> `$:` is not allowed in runes mode, use `$derived` or `$effect` instead
## invalid_legacy_rest_props
> Cannot use `$$restProps` in runes mode
## invalid_props_id
> `$props()` can only be used with an object destructuring pattern
## invalid_props_location
> `$props()` can only be used at the top level of components as a variable declaration initializer
## invalid_props_pattern
> `$props()` assignment must not contain nested properties or computed keys
## invalid_rune_args
> `%rune%` cannot be called with arguments
## invalid_rune_args_length
> `%rune%` must be called with %args%
## invalid_rune_usage
> Cannot use %rune% rune in non-runes mode
## invalid_runes_mode_import
> %name% cannot be used in runes mode
## invalid_snippet_assignment
> Cannot reassign or bind to snippet parameter
## invalid_state_export
> Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties
## invalid_state_location
> `%rune%(...)` can only be used as a variable declaration initializer or a class field
> `$bindable()` can only be used inside a `$props()` declaration
## constant_assignment
> Cannot assign to %thing%
## constant_binding
> Cannot bind to %thing%
## declaration_duplicate
> `%name%` has already been declared
@ -6,6 +18,10 @@
> Cannot declare same variable name which is imported inside `<script context="module">`
## derived_invalid_export
> Cannot export derived state from a module. To expose the current derived value, export a function returning its value
## dollar_binding_invalid
> The $ name is reserved, and cannot be used for variables and imports
@ -14,18 +30,90 @@
> The $ prefix is reserved, and cannot be used for variables and imports
## each_item_invalid_assignment
> Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`)
## effect_invalid_placement
> `$effect()` can only be used as an expression statement
## global_reference_invalid
> `%name%` is an illegal variable name. To reference a global variable called `%name%`, use `globalThis.%name%`
## host_invalid_placement
> `$host()` can only be used inside custom element component instances
## legacy_export_invalid
> Cannot use `export let` in runes mode — use $props instead
## legacy_props_invalid
> Cannot use `$$props` in runes mode
## legacy_reactive_statement_invalid
> `$:` is not allowed in runes mode, use `$derived` or `$effect` instead
## legacy_rest_props_invalid
> Cannot use `$$restProps` in runes mode
## module_illegal_default_export
> A component cannot have a default export
## props_duplicate
> Cannot use `$props()` more than once
## props_invalid_identifier
> `$props()` can only be used with an object destructuring pattern
## props_invalid_pattern
> `$props()` assignment must not contain nested properties or computed keys
## props_invalid_placement
> `$props()` can only be used at the top level of components as a variable declaration initializer
## reactive_declaration_cycle
> Cyclical dependency detected: %cycle%
## rune_invalid_arguments
> `%rune%` cannot be called with arguments
## rune_invalid_arguments_length
> `%rune%` must be called with %args%
## rune_invalid_usage
> Cannot use %rune% rune in non-runes mode
## runes_mode_invalid_import
> %name% cannot be used in runes mode
## snippet_parameter_assignment
> Cannot reassign or bind to snippet parameter
## state_invalid_export
> Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties
## state_invalid_placement
> `%rune%(...)` can only be used as a variable declaration initializer or a class field
## store_invalid_scoped_subscription
> Cannot subscribe to stores that are not declared at the top level of the component
e(node,"invalid_derived_export","Cannot export derived state from a module. To expose the current derived value, export a function returning its value");
e(node,"global_reference_invalid",`\`${name}\` is an illegal variable name. To reference a global variable called \`${name}\`, use \`globalThis.${name}\``);
e(node,"invalid_each_assignment","Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`)");
e(node,"invalid_props_id","`$props()` can only be used with an object destructuring pattern");
exportfunctionderived_invalid_export(node){
e(node,"derived_invalid_export","Cannot export derived state from a module. To expose the current derived value, export a function returning its value");
e(node,"invalid_props_location","`$props()` can only be used at the top level of components as a variable declaration initializer");
exportfunctioneach_item_invalid_assignment(node){
e(node,"each_item_invalid_assignment","Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`)");
e(node,"invalid_state_export","Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties");
exportfunctionprops_duplicate(node){
e(node,"props_duplicate","Cannot use `$props()` more than once");
e(node,"global_reference_invalid",`\`${name}\` is an illegal variable name. To reference a global variable called \`${name}\`, use \`globalThis.${name}\``);
exportfunctionrune_invalid_usage(node,rune){
e(node,"rune_invalid_usage",`Cannot use ${rune} rune in non-runes mode`);
e(node,"store_invalid_scoped_subscription","Cannot subscribe to stores that are not declared at the top level of the component");
exportfunctionstate_invalid_export(node){
e(node,"state_invalid_export","Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties");
"Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties",
"Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties",
"Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties",
'Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`)'
'Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`)'