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-18
Original file line number
Diff line number
Diff line change
@@ -786,15 +786,6 @@ export function component_invalid_directive(node) {
786
786
e(node,"component_invalid_directive","This type of directive is not valid on components");
787
787
}
788
788
789
-
/**
790
-
* Component name must be a valid variable name or dot notation expression
791
-
* @param {null | number | NodeLike} node
792
-
* @returns {never}
793
-
*/
794
-
exportfunctioncomponent_invalid_name(node){
795
-
e(node,"component_invalid_name","Component name must be a valid variable name or dot notation expression");
796
-
}
797
-
798
789
/**
799
790
* Cyclical dependency detected: %cycle%
800
791
* @param {null | number | NodeLike} node
@@ -872,15 +863,6 @@ export function element_invalid_closing_tag_autoclosed(node, name, reason) {
872
863
e(node,"element_invalid_closing_tag_autoclosed",`\`</${name}>\` attempted to close element that was already automatically closed by \`<${reason}>\` (cannot nest \`<${reason}>\` inside \`<${name}>\`)`);
873
864
}
874
865
875
-
/**
876
-
* Expected valid tag name
877
-
* @param {null | number | NodeLike} node
878
-
* @returns {never}
879
-
*/
880
-
exportfunctionelement_invalid_tag_name(node){
881
-
e(node,"element_invalid_tag_name","Expected valid tag name");
882
-
}
883
-
884
866
/**
885
867
* `<%name%>` was left open
886
868
* @param {null | number | NodeLike} node
@@ -1378,6 +1360,15 @@ export function svelte_self_invalid_placement(node) {
1378
1360
e(node,"svelte_self_invalid_placement","`<svelte:self>` components can only exist inside `{#if}` blocks, `{#each}` blocks, `{#snippet}` blocks or slots passed to components");
1379
1361
}
1380
1362
1363
+
/**
1364
+
* Expected a valid element or component name. Components must have a valid variable name or dot notation expression
1365
+
* @param {null | number | NodeLike} node
1366
+
* @returns {never}
1367
+
*/
1368
+
exportfunctiontag_invalid_name(node){
1369
+
e(node,"tag_invalid_name","Expected a valid element or component name. Components must have a valid variable name or dot notation expression");
0 commit comments