pull/18151/head
Rich Harris 2 weeks ago
parent 9dc0f484e6
commit 23865447c4

@ -703,12 +703,6 @@ See [the migration guide](v5-migration-guide#Event-changes) for more info.
Component has unused export property '%name%'. If it is for external reference only, please consider using `export const %name%`
```
### unexpected_head
```
Using `<head>` (%location%) will likely lead to runtime errors. Use [`<svelte:head>`](https://svelte.dev/docs/svelte/svelte-head) instead
```
### legacy_code
```
@ -988,6 +982,12 @@ A derived value may be used in other contexts:
See [the note in the docs](legacy-svelte-self) for more info.
### unexpected_head
```
Using `<head>` (%location%) will likely lead to runtime errors. Use [`<svelte:head>`](https://svelte.dev/docs/svelte/svelte-head) instead
```
### unknown_code
```

@ -83,10 +83,6 @@ In a future version of Svelte, self-closing tags may be upgraded from a warning
See [the migration guide](v5-migration-guide#Event-changes) for more info.
## unexpected_head
> Using `<head>` (%location%) will likely lead to runtime errors. Use [`<svelte:head>`](https://svelte.dev/docs/svelte/svelte-head) instead
## node_invalid_placement_ssr
> %message%. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a `hydration_mismatch` warning
@ -163,3 +159,7 @@ A derived value may be used in other contexts:
> `<svelte:self>` is deprecated — use self-imports (e.g. `import %name% from './%basename%'`) instead
See [the note in the docs](legacy-svelte-self) for more info.
## unexpected_head
> Using `<head>` (%location%) will likely lead to runtime errors. Use [`<svelte:head>`](https://svelte.dev/docs/svelte/svelte-head) instead

@ -113,14 +113,14 @@ export const codes = [
'element_implicitly_closed',
'element_invalid_self_closing_tag',
'event_directive_deprecated',
'unexpected_head',
'node_invalid_placement_ssr',
'script_context_deprecated',
'script_unknown_attribute',
'slot_element_deprecated',
'svelte_component_deprecated',
'svelte_element_invalid_this',
'svelte_self_deprecated'
'svelte_self_deprecated',
'unexpected_head'
];
/**
@ -786,15 +786,6 @@ export function event_directive_deprecated(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\nhttps://svelte.dev/e/event_directive_deprecated`);
}
/**
* Using `<head>` (%location%) will likely lead to runtime errors. Use [`<svelte:head>`](https://svelte.dev/docs/svelte/svelte-head) instead
* @param {null | NodeLike} node
* @param {string} location
*/
export function unexpected_head(node, location) {
w(node, 'unexpected_head', `Using \`<head>\` (${location}) will likely lead to runtime errors. Use [\`<svelte:head>\`](https://svelte.dev/docs/svelte/svelte-head) instead\nhttps://svelte.dev/e/unexpected_head`);
}
/**
* %message%. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a `hydration_mismatch` warning
* @param {null | NodeLike} node
@ -853,3 +844,12 @@ export function svelte_element_invalid_this(node) {
export function svelte_self_deprecated(node, name, basename) {
w(node, 'svelte_self_deprecated', `\`<svelte:self>\` is deprecated — use self-imports (e.g. \`import ${name} from './${basename}'\`) instead\nhttps://svelte.dev/e/svelte_self_deprecated`);
}
/**
* Using `<head>` (%location%) will likely lead to runtime errors. Use [`<svelte:head>`](https://svelte.dev/docs/svelte/svelte-head) instead
* @param {null | NodeLike} node
* @param {string} location
*/
export function unexpected_head(node, location) {
w(node, 'unexpected_head', `Using \`<head>\` (${location}) will likely lead to runtime errors. Use [\`<svelte:head>\`](https://svelte.dev/docs/svelte/svelte-head) instead\nhttps://svelte.dev/e/unexpected_head`);
}
Loading…
Cancel
Save