import { docsBase, prodReporters, reporters } from "./_shared.js"; import { defineDiagnostics, defineProdDiagnostics } from "nostics"; //#region src/app/diagnostics/head.ts /** * E6xxx * Head / unhead runtime diagnostics. */ const unheadDiagnostics = !import.meta.dev ? /* #__PURE__ */ defineProdDiagnostics({ docsBase, reporters: prodReporters }) : /* #__PURE__ */ defineDiagnostics({ docsBase, reporters, codes: { NUXT_E6001: { why: "The Unhead instance is missing.", fix: "Ensure `useHead()` is called inside a component `setup()` function, a Nuxt plugin, or Nuxt middleware." }, NUXT_E6002: { why: "`` received more than one child in its default slot.", fix: "Pass a single string to the `<Title>` default slot.", docs: false }, NUXT_E6003: { why: "`<Style>` received a non-string child in its default slot.", fix: "Pass a single string to the `<Style>` default slot.", docs: false }, NUXT_E6004: { why: (p) => `\`<${p.component}>\` reads its text content from the slot VNodes, which a vapor slot does not expose.`, fix: (p) => `Pass the \`<${p.component}>\` content as a string instead.`, docs: false } } }); //#endregion export { unheadDiagnostics };