nuxt
Version:
33 lines (32 loc) • 986 B
JavaScript
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: "`<Title>` 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
}
}
});
//#endregion
export { unheadDiagnostics };