You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/svelte/src/compiler/errors.js
+9
Original file line number
Diff line number
Diff line change
@@ -480,6 +480,15 @@ export function state_invalid_placement(node, rune) {
480
480
e(node,'state_invalid_placement',`\`${rune}(...)\` can only be used as a variable declaration initializer or a class field\nhttps://svelte.dev/e/state_invalid_placement`);
481
481
}
482
482
483
+
/**
484
+
* `$state.invalidate` only takes a variable declared with `$state` or `$state.raw` as its argument
e(node,'state_invalidate_nonreactive_argument',`\`$state.invalidate\` only takes a variable declared with \`$state\` or \`$state.raw\` as its argument\nhttps://svelte.dev/e/state_invalidate_nonreactive_argument`);
490
+
}
491
+
483
492
/**
484
493
* Cannot subscribe to stores that are not declared at the top level of the component
0 commit comments