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/tests/compiler-errors/samples/export-state/_config.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,8 @@ import { test } from '../../test';
3
3
exportdefaulttest({
4
4
error: {
5
5
code: 'invalid-state-export',
6
-
message: 'Cannot export state from a module if it is reassigned',
6
+
message:
7
+
"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",
Copy file name to clipboardExpand all lines: packages/svelte/tests/compiler-errors/samples/runes-export-named-state/_config.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,8 @@ import { test } from '../../test';
3
3
exportdefaulttest({
4
4
error: {
5
5
code: 'invalid-state-export',
6
-
message: 'Cannot export state from a module if it is reassigned',
6
+
message:
7
+
"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",
0 commit comments