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
console.warn(`%c[svelte] assignment_value_stale\n%cAssignment to \`${property}\` property (${location}) will evaluate to the right-hand side, not the value of \`${property}\` following the assignment. This may result in unexpected behaviour.\nSee https://svelte.dev/e/assignment_value_stale for more info`,bold,normal);
15
+
console.warn(`%c[svelte] assignment_value_stale\n%cAssignment to \`${property}\` property (${location}) will evaluate to the right-hand side, not the value of \`${property}\` following the assignment. This may result in unexpected behaviour.\nhttps://svelte.dev/e/assignment_value_stale`,bold,normal);
console.warn(`%c[svelte] binding_property_non_reactive\n%c${location ? `\`${binding}\` (${location}) is binding to a non-reactive property` : `\`${binding}\` is binding to a non-reactive property`}\nSee https://svelte.dev/e/binding_property_non_reactive for more info`,bold,normal);
28
+
console.warn(`%c[svelte] binding_property_non_reactive\n%c${location ? `\`${binding}\` (${location}) is binding to a non-reactive property` : `\`${binding}\` is binding to a non-reactive property`}\nhttps://svelte.dev/e/binding_property_non_reactive`,bold,normal);
@@ -37,9 +37,9 @@ export function binding_property_non_reactive(binding, location) {
37
37
*/
38
38
exportfunctionconsole_log_state(method){
39
39
if(DEV){
40
-
console.warn(`%c[svelte] console_log_state\n%cYour \`console.${method}\` contained \`$state\` proxies. Consider using \`$inspect(...)\` or \`$state.snapshot(...)\` instead\nSee https://svelte.dev/e/console_log_state for more info`,bold,normal);
40
+
console.warn(`%c[svelte] console_log_state\n%cYour \`console.${method}\` contained \`$state\` proxies. Consider using \`$inspect(...)\` or \`$state.snapshot(...)\` instead\nhttps://svelte.dev/e/console_log_state`,bold,normal);
console.warn(`%c[svelte] event_handler_invalid\n%c${handler} should be a function. Did you mean to ${suggestion}?\nSee https://svelte.dev/e/event_handler_invalid for more info`,bold,normal);
53
+
console.warn(`%c[svelte] event_handler_invalid\n%c${handler} should be a function. Did you mean to ${suggestion}?\nhttps://svelte.dev/e/event_handler_invalid`,bold,normal);
console.warn(`%c[svelte] hydration_attribute_changed\n%cThe \`${attribute}\` attribute on \`${html}\` changed its value between server and client renders. The client value, \`${value}\`, will be ignored in favour of the server value\nSee https://svelte.dev/e/hydration_attribute_changed for more info`,bold,normal);
67
+
console.warn(`%c[svelte] hydration_attribute_changed\n%cThe \`${attribute}\` attribute on \`${html}\` changed its value between server and client renders. The client value, \`${value}\`, will be ignored in favour of the server value\nhttps://svelte.dev/e/hydration_attribute_changed`,bold,normal);
@@ -76,9 +76,9 @@ export function hydration_attribute_changed(attribute, html, value) {
76
76
*/
77
77
exportfunctionhydration_html_changed(location){
78
78
if(DEV){
79
-
console.warn(`%c[svelte] hydration_html_changed\n%c${location ? `The value of an \`{@html ...}\` block ${location} changed between server and client renders. The client value will be ignored in favour of the server value` : "The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}\nSee https://svelte.dev/e/hydration_html_changed for more info`,bold,normal);
79
+
console.warn(`%c[svelte] hydration_html_changed\n%c${location ? `The value of an \`{@html ...}\` block ${location} changed between server and client renders. The client value will be ignored in favour of the server value` : "The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}\nhttps://svelte.dev/e/hydration_html_changed`,bold,normal);
@@ -88,9 +88,9 @@ export function hydration_html_changed(location) {
88
88
*/
89
89
exportfunctionhydration_mismatch(location){
90
90
if(DEV){
91
-
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"}\nSee https://svelte.dev/e/hydration_mismatch for more info`,bold,normal);
91
+
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"}\nhttps://svelte.dev/e/hydration_mismatch`,bold,normal);
@@ -99,9 +99,9 @@ export function hydration_mismatch(location) {
99
99
*/
100
100
exportfunctioninvalid_raw_snippet_render(){
101
101
if(DEV){
102
-
console.warn(`%c[svelte] invalid_raw_snippet_render\n%cThe \`render\` function passed to \`createRawSnippet\` should return HTML for a single element\nSee https://svelte.dev/e/invalid_raw_snippet_render for more info`,bold,normal);
102
+
console.warn(`%c[svelte] invalid_raw_snippet_render\n%cThe \`render\` function passed to \`createRawSnippet\` should return HTML for a single element\nhttps://svelte.dev/e/invalid_raw_snippet_render`,bold,normal);
console.warn(`%c[svelte] legacy_recursive_reactive_block\n%cDetected a migrated \`$:\` reactive block in \`${filename}\` that both accesses and updates the same reactive value. This may cause recursive updates when converted to an \`$effect\`.\nSee https://svelte.dev/e/legacy_recursive_reactive_block for more info`,bold,normal);
114
+
console.warn(`%c[svelte] legacy_recursive_reactive_block\n%cDetected a migrated \`$:\` reactive block in \`${filename}\` that both accesses and updates the same reactive value. This may cause recursive updates when converted to an \`$effect\`.\nhttps://svelte.dev/e/legacy_recursive_reactive_block`,bold,normal);
@@ -122,9 +122,9 @@ export function legacy_recursive_reactive_block(filename) {
122
122
*/
123
123
exportfunctionlifecycle_double_unmount(){
124
124
if(DEV){
125
-
console.warn(`%c[svelte] lifecycle_double_unmount\n%cTried to unmount a component that was not mounted\nSee https://svelte.dev/e/lifecycle_double_unmount for more info`,bold,normal);
125
+
console.warn(`%c[svelte] lifecycle_double_unmount\n%cTried to unmount a component that was not mounted\nhttps://svelte.dev/e/lifecycle_double_unmount`,bold,normal);
console.warn(`%c[svelte] ownership_invalid_binding\n%c${parent} passed a value to ${child} with \`bind:\`, but the value is owned by ${owner}. Consider creating a binding between ${owner} and ${parent}\nSee https://svelte.dev/e/ownership_invalid_binding for more info`,bold,normal);
139
+
console.warn(`%c[svelte] ownership_invalid_binding\n%c${parent} passed a value to ${child} with \`bind:\`, but the value is owned by ${owner}. Consider creating a binding between ${owner} and ${parent}\nhttps://svelte.dev/e/ownership_invalid_binding`,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"}\nSee https://svelte.dev/e/ownership_invalid_mutation for more info`,bold,normal);
152
+
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"}\nhttps://svelte.dev/e/ownership_invalid_mutation`,bold,normal);
console.warn(`%c[svelte] reactive_declaration_non_reactive_property\n%cA \`$:\` statement (${location}) read reactive state that was not visible to the compiler. Updates to this state will not cause the statement to re-run. The behaviour of this code will change if you migrate it to runes mode\nSee https://svelte.dev/e/reactive_declaration_non_reactive_property for more info`,bold,normal);
164
+
console.warn(`%c[svelte] reactive_declaration_non_reactive_property\n%cA \`$:\` statement (${location}) read reactive state that was not visible to the compiler. Updates to this state will not cause the statement to re-run. The behaviour of this code will change if you migrate it to runes mode\nhttps://svelte.dev/e/reactive_declaration_non_reactive_property`,bold,normal);
console.warn(`%c[svelte] state_proxy_equality_mismatch\n%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${operator}\` will produce unexpected results\nSee https://svelte.dev/e/state_proxy_equality_mismatch for more info`,bold,normal);
176
+
console.warn(`%c[svelte] state_proxy_equality_mismatch\n%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${operator}\` will produce unexpected results\nhttps://svelte.dev/e/state_proxy_equality_mismatch`,bold,normal);
consterror=newError(`lifecycle_function_unavailable\n\`${name}(...)\` is not available on the server\nSee https://svelte.dev/e/lifecycle_function_unavailable for more info`);
9
+
consterror=newError(`lifecycle_function_unavailable\n\`${name}(...)\` is not available on the server\nhttps://svelte.dev/e/lifecycle_function_unavailable`);
Copy file name to clipboardExpand all lines: packages/svelte/src/internal/shared/errors.js
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@ import { DEV } from 'esm-env';
8
8
*/
9
9
exportfunctioninvalid_default_snippet(){
10
10
if(DEV){
11
-
consterror=newError(`invalid_default_snippet\nCannot use \`{@render children(...)}\` if the parent component uses \`let:\` directives. Consider using a named snippet instead\nSee https://svelte.dev/e/invalid_default_snippet for more info`);
11
+
consterror=newError(`invalid_default_snippet\nCannot use \`{@render children(...)}\` if the parent component uses \`let:\` directives. Consider using a named snippet instead\nhttps://svelte.dev/e/invalid_default_snippet`);
@@ -25,13 +25,13 @@ export function invalid_default_snippet() {
25
25
*/
26
26
exportfunctionlifecycle_outside_component(name){
27
27
if(DEV){
28
-
consterror=newError(`lifecycle_outside_component\n\`${name}(...)\` can only be used during component initialisation\nSee https://svelte.dev/e/lifecycle_outside_component for more info`);
28
+
consterror=newError(`lifecycle_outside_component\n\`${name}(...)\` can only be used during component initialisation\nhttps://svelte.dev/e/lifecycle_outside_component`);
@@ -42,13 +42,13 @@ export function lifecycle_outside_component(name) {
42
42
*/
43
43
exportfunctionstore_invalid_shape(name){
44
44
if(DEV){
45
-
consterror=newError(`store_invalid_shape\n\`${name}\` is not a store with a \`subscribe\` method\nSee https://svelte.dev/e/store_invalid_shape for more info`);
45
+
consterror=newError(`store_invalid_shape\n\`${name}\` is not a store with a \`subscribe\` method\nhttps://svelte.dev/e/store_invalid_shape`);
consterror=newError(`svelte_element_invalid_this_value\nThe \`this\` prop on \`<svelte:element>\` must be a string, if defined\nSee https://svelte.dev/e/svelte_element_invalid_this_value for more info`);
61
+
consterror=newError(`svelte_element_invalid_this_value\nThe \`this\` prop on \`<svelte:element>\` must be a string, if defined\nhttps://svelte.dev/e/svelte_element_invalid_this_value`);
0 commit comments