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-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -396,30 +396,30 @@ export function runes_mode_invalid_import(node, name) {
396
396
}
397
397
398
398
/**
399
-
* Cannot reassign or bind to snippet parameter
399
+
* Cannot export snippet from a `<script module>` if it references logic or expressions inside the component
400
400
* @param {null | number | NodeLike} node
401
401
* @returns {never}
402
402
*/
403
-
exportfunctionsnippet_parameter_assignment(node){
404
-
e(node,"snippet_parameter_assignment","Cannot reassign or bind to snippet parameter");
403
+
exportfunctionsnippet_invalid_export(node){
404
+
e(node,"snippet_invalid_export","Cannot export snippet from a `<script module>` if it references logic or expressions inside the component");
405
405
}
406
406
407
407
/**
408
-
* 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
408
+
* Cannot reassign or bind to snippet parameter
409
409
* @param {null | number | NodeLike} node
410
410
* @returns {never}
411
411
*/
412
-
exportfunctionstate_invalid_export(node){
413
-
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");
412
+
exportfunctionsnippet_parameter_assignment(node){
413
+
e(node,"snippet_parameter_assignment","Cannot reassign or bind to snippet parameter");
414
414
}
415
415
416
416
/**
417
-
* Cannot export snippet from a `<script module>` if it references logic or expressions inside the component
417
+
* 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
418
418
* @param {null | number | NodeLike} node
419
419
* @returns {never}
420
420
*/
421
-
exportfunctionsnippet_invalid_export(node){
422
-
e(node,"snippet_invalid_export","Cannot export snippet from a `<script module>` if it references logic or expressions inside the component");
421
+
exportfunctionstate_invalid_export(node){
422
+
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");
0 commit comments