> Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
> `$host()` can only be used inside custom element component instances
## import_svelte_internal_forbidden
> Imports of `svelte/internal/*` are forbidden. It contains private runtime code which is subject to change without notice. If you're importing from `svelte/internal/*` to work around a limitation of Svelte, please open an issue at https://github.com/sveltejs/svelte and explain your use case
## legacy_export_invalid
> Cannot use `export let` in runes mode — use `$props()` instead
> Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as `<button type="button">` or `<a>` might be more appropriate. See https://svelte.dev/docs/accessibility-warnings#a11y-click-events-have-key-events for more details.
> Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as `<button type="button">` or `<a>` might be more appropriate. See https://svelte.dev/docs/accessibility-warnings#a11y-click-events-have-key-events for more details
## a11y_distracting_elements
@ -40,7 +40,7 @@
## a11y_img_redundant_alt
> Screenreaders already announce `<img>` elements as an image.
> Screenreaders already announce `<img>` elements as an image
## a11y_incorrect_aria_attribute_type
@ -76,7 +76,7 @@
## a11y_interactive_supports_focus
> Elements with the '%role%' interactive role must have a tabindex value.
> Elements with the '%role%' interactive role must have a tabindex value
## a11y_invalid_attribute
@ -84,7 +84,7 @@
## a11y_label_has_associated_control
> A form label must be associated with a control.
> A form label must be associated with a control
## a11y_media_has_caption
@ -120,7 +120,7 @@
## a11y_no_noninteractive_element_interactions
> Non-interactive element `<%element%>` should not be assigned mouse or keyboard event listeners.
> Non-interactive element `<%element%>` should not be assigned mouse or keyboard event listeners
@ -24,6 +25,11 @@ export class CompileError extends Error {
super(message);
this.code=code;
this.position=position;
if(position){
this.start=state.locator(position[0]);
this.end=state.locator(position[1]);
}
}
toString(){
@ -198,6 +204,15 @@ export function host_invalid_placement(node) {
e(node,"host_invalid_placement","`$host()` can only be used inside custom element component instances");
}
/**
*Importsof`svelte/internal/*`areforbidden.Itcontainsprivateruntimecodewhichissubjecttochangewithoutnotice.Ifyou'reimportingfrom`svelte/internal/*`toworkaroundalimitationofSvelte,pleaseopenanissueathttps://github.com/sveltejs/svelte and explain your use case
e(node,"import_svelte_internal_forbidden","Imports of `svelte/internal/*` are forbidden. It contains private runtime code which is subject to change without notice. If you're importing from `svelte/internal/*` to work around a limitation of Svelte, please open an issue at https://github.com/sveltejs/svelte and explain your use case");
e(node,"attribute_unquoted_sequence","Attribute values containing `{...}` must be enclosed in quote marks, unless the value only contains the expression");
}
/**
*CanonlybindtoanIdentifierorMemberExpression
*@param{null|number|NodeLike}node
@ -919,13 +943,13 @@ export function let_directive_invalid_placement(node) {
e(node,"slot_snippet_conflict","Cannot use `<slot>` syntax and `{@render ...}` tags in the same component. Migrate towards `{@render ...}` tags completely.");
e(node,"slot_snippet_conflict","Cannot use `<slot>` syntax and `{@render ...}` tags in the same component. Migrate towards `{@render ...}` tags completely");
}
/**
@ -1123,21 +1147,12 @@ export function svelte_component_missing_this(node) {
}
/**
*Invalidelementdefinition—mustbean`{expression}`
*@param{null|number|NodeLike}node
*@returns{never}
*/
exportfunctionsvelte_element_invalid_this(node){
e(node,"svelte_element_invalid_this","Invalid element definition — must be an `{expression}`");
@ -137,11 +138,11 @@ export function a11y_autofocus(node) {
}
/**
*Visible,non-interactiveelementswithaclickeventmustbeaccompaniedbyakeyboardeventhandler.Considerwhetheraninteractiveelementsuchas`<button type="button">`or`<a>`mightbemoreappropriate.Seehttps://svelte.dev/docs/accessibility-warnings#a11y-click-events-have-key-events for more details.
*Visible,non-interactiveelementswithaclickeventmustbeaccompaniedbyakeyboardeventhandler.Considerwhetheraninteractiveelementsuchas`<button type="button">`or`<a>`mightbemoreappropriate.Seehttps://svelte.dev/docs/accessibility-warnings#a11y-click-events-have-key-events for more details
w(node,"a11y_click_events_have_key_events","Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as `<button type=\"button\">` or `<a>` might be more appropriate. See https://svelte.dev/docs/accessibility-warnings#a11y-click-events-have-key-events for more details.");
w(node,"a11y_click_events_have_key_events","Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as `<button type=\"button\">` or `<a>` might be more appropriate. See https://svelte.dev/docs/accessibility-warnings#a11y-click-events-have-key-events for more details");
}
/**
@ -179,11 +180,11 @@ export function a11y_hidden(node, name) {
w(node,"a11y_no_noninteractive_element_interactions",`Non-interactive element \`<${element}>\` should not be assigned mouse or keyboard event listeners.`);
w(node,"a11y_no_noninteractive_element_interactions",`Non-interactive element \`<${element}>\` should not be assigned mouse or keyboard event listeners`);
}
/**
@ -698,18 +699,26 @@ export function element_invalid_self_closing_tag(node, name) {
w(node,"event_directive_deprecated",`Using \`on:${name}\` to listen to the ${name} event is deprecated. Use the event attribute \`on${name}\` instead.`);
w(node,"event_directive_deprecated",`Using \`on:${name}\` to listen to the ${name} event is deprecated. Use the event attribute \`on${name}\` instead`);
w(node,"svelte_element_invalid_this","`this` should be an `{expression}`. Using a string attribute value will cause an error in future versions of Svelte");
console.warn(`%c[svelte] ${"hydration_mismatch"}\n%c${"Hydration failed because the initial UI does not match what was rendered on the server"}`,bold,normal);
console.warn(`%c[svelte] ${"hydration_mismatch"}\n%c${location?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${location}`:"Hydration failed because the initial UI does not match what was rendered on the server"}`,bold,normal);
}else{
// TODO print a link to the documentation
console.warn("hydration_mismatch");
@ -66,7 +67,7 @@ export function ownership_invalid_binding(parent, child, owner) {
console.warn(`%c[svelte] ${"ownership_invalid_mutation"}\n%c${`${component} mutated a value owned by ${owner}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`}`,bold,normal);
console.warn(`%c[svelte] ${"ownership_invalid_mutation"}\n%c${component?`${component} mutated a value owned by ${owner}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}`,bold,normal);
}else{
// TODO print a link to the documentation
console.warn("ownership_invalid_mutation");
Some files were not shown because too many files have changed in this diff
Show More