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
+2-1
Original file line number
Diff line number
Diff line change
@@ -207,7 +207,8 @@ const runes = {
207
207
/** @param {string} name */
208
208
'invalid-runes-mode-import': (name)=>`${name} cannot be used in runes mode`,
209
209
'duplicate-props-rune': ()=>`Cannot use $props() more than once`,
210
-
'invalid-each-assignment': ()=>`Cannot reassign each block argument in runes mode`
210
+
'invalid-each-assignment': ()=>
211
+
`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')"
Copy file name to clipboardExpand all lines: packages/svelte/tests/compiler-errors/samples/runes-invalid-each-mutation/_config.js
+2-1
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ import { test } from '../../test';
3
3
exportdefaulttest({
4
4
error: {
5
5
code: 'invalid-each-assignment',
6
-
message: 'Cannot reassign each block argument in runes mode'
6
+
message:
7
+
"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')"
0 commit comments