import { h as kUnusedVariants, m as kServerApi, r as findPackageMissingSubpath, x as installModules } from "../dependency-BOcSbIUw.mjs"; import { Nuxt, NuxtBuildOutputs, NuxtOptions } from "@nuxt/schema"; import { NuxtServerBuild } from "@nuxt/schema/internal"; //#region src/diagnostics/build.d.ts /** * B1xxx * Build / compilation diagnostics. * * @internal */ export declare const buildDiagnostics: import("nostics").Diagnostics<{ readonly NUXT_B1001: { readonly why: (p: { filename: string; }) => string; readonly fix: (p: { src?: string; }) => string; readonly docs: false; }; readonly NUXT_B1002: { readonly why: (p: { src: string; }) => string; readonly fix: "Check that the template `src` path exists and is readable."; readonly docs: false; }; readonly NUXT_B1003: { readonly why: "Invalid template. Templates must have either `src` or `getContents`."; readonly fix: "Add a `getContents` function or a `src` path to the `addTemplate()` call."; readonly docs: false; }; readonly NUXT_B1004: { readonly why: "Failed to install dependencies."; readonly fix: (p: { installCommand: string; }) => string; readonly docs: false; }; readonly NUXT_B1005: { readonly why: (p: { plugin: string; file: string; }) => string; readonly fix: "Check the file for syntax errors, or report this issue to the plugin author."; readonly docs: false; }; readonly NUXT_B1006: { readonly why: (p: { file: string; }) => string; readonly fix: "Check that the file exists and has correct permissions."; readonly docs: false; }; readonly NUXT_B1007: { readonly why: (p: { plugin: string; }) => string; readonly fix: "Check the plugin implementation or report this issue to the plugin author."; readonly docs: false; }; readonly NUXT_B1008: { readonly why: (p: { function: string; file: string; }) => string; readonly fix: "Please report this issue at https://github.com/nuxt/nuxt/issues with the file contents."; readonly docs: false; }; readonly NUXT_B1009: { readonly why: (p: { functionName: string; name?: string; source?: string; }) => string; readonly fix: "Ensure each keyed function has a unique name, or use a different source to distinguish them."; readonly docs: false; }; readonly NUXT_B1010: { readonly why: (p: { file: string; }) => string; readonly fix: "The file was modified while being read, usually by a concurrent process writing to it. Try restarting the build."; readonly docs: false; }; readonly NUXT_B1011: { readonly why: (p: { file: string; }) => string; readonly fix: "Check that the file exists and is readable, or try clearing the build cache with `nuxt clean`."; readonly docs: false; }; readonly NUXT_B1012: { readonly why: (p: { path: string; }) => string; readonly fix: "Delete the cache with `nuxt clean` and rebuild."; readonly docs: false; }; readonly NUXT_B1013: { readonly why: (p: { file: string; }) => string; readonly fix: "Try clearing the build cache with `nuxt clean` and rebuilding from scratch."; readonly docs: false; }; readonly NUXT_B1014: { readonly why: "Problem checking for external configuration files."; readonly fix: "This is likely a transient file system error. If it persists, check file permissions in your project root."; readonly docs: false; }; readonly NUXT_B1015: { readonly why: "Falling back to `chokidar-granular` as `@parcel/watcher` cannot be resolved in your project."; readonly fix: (p: { installCommand: string; }) => string; readonly docs: false; }; readonly NUXT_B1016: { readonly why: "Failed to set up the `@parcel/watcher` file watcher."; readonly fix: "This is likely an environment or file system issue. Watching for file changes may not work; restart the dev server and, if the problem persists, report it."; readonly docs: false; }; readonly NUXT_B1017: { readonly why: (p: { builder: string; }) => string; readonly fix: (p: { installCommand: string; }) => string; readonly docs: false; }; readonly NUXT_B1018: { readonly why: (p: { builder: string; }) => string; readonly fix: (p: { installCommand: string; }) => string; readonly docs: false; }; readonly NUXT_B1019: { readonly why: (p: { mode: string; }) => string; readonly fix: "If you are a module author, ensure the component `mode` is set to `client`, `server`, or `all`. Otherwise, please report this issue."; readonly docs: false; }; readonly NUXT_B1020: { readonly why: "`experimental.watcher: \"builder\"` is set but the active builder does not implement `setupWatcher`. Falling back to the default file watcher."; readonly fix: "Remove `experimental.watcher` from your `nuxt.config`, or use a builder that supports its own watcher."; readonly docs: false; }; readonly NUXT_B1021: { readonly why: (p: { export: string; }) => string; readonly fix: "If you are a module author, ensure the `export` you register for a component is a valid identifier. Otherwise, please report this issue."; readonly docs: false; }; readonly NUXT_B1022: { readonly why: (p: { count: number; templates: string; }) => string; readonly fix: "A `getContents` function returned a promise that never settles. Resolve it before the bundler starts (for example from `pages:resolved` or `nitro:init`), rather than waiting on something that happens during or after bundling."; readonly docs: false; }; }, readonly [import("nostics").DiagnosticReporter<{ method?: import("nostics").ConsoleMethod; }, any>], never>; //#endregion //#region src/diagnostics/plugins.d.ts /** * B2xxx * Plugin diagnostics (`addPlugin`, plugin metadata, plugin ordering). * * @internal */ export declare const pluginDiagnostics: import("nostics").Diagnostics<{ readonly NUXT_B2001: { readonly why: (p: { type: string; name: string; }) => string; readonly fix: "Pass an object literal as the second argument, e.g. `defineNuxtPlugin(() => {}, { name: 'my-plugin' })`."; readonly docs: false; }; readonly NUXT_B2002: { readonly why: "Plugin options contain spread elements or computed keys, which are not supported."; readonly fix: "Use static properties instead."; readonly docs: false; }; readonly NUXT_B2003: { readonly why: "`dependsOn` is not an array of string literals."; readonly fix: "Use string literals in the `dependsOn` array, e.g. `dependsOn: ['my-plugin']`."; readonly docs: false; }; readonly NUXT_B2004: { readonly why: (p: { src: string; }) => string; readonly fix: "Add content to the plugin file, or remove it from the `plugins/` directory."; readonly docs: false; }; readonly NUXT_B2005: { readonly why: (p: { src: string; }) => string; readonly fix: "Add `export default defineNuxtPlugin(() => {})` to your plugin."; readonly docs: false; }; readonly NUXT_B2006: { readonly why: (p: { src: string; }) => string; readonly fix: "Check the plugin file for syntax errors."; readonly docs: false; }; readonly NUXT_B2007: { readonly why: (p: { src: string; }) => string; readonly fix: "Wrap your plugin with `defineNuxtPlugin`. This may enable enhancements in future."; readonly docs: false; }; readonly NUXT_B2008: { readonly why: (p: { name: string; missing: string; }) => string; readonly fix: "Register the missing dependency plugins, or remove them from the `dependsOn` array."; readonly docs: false; }; readonly NUXT_B2009: { readonly why: (p: { cycle: string; }) => string; readonly fix: "Restructure the plugin `dependsOn` declarations to break the cycle."; readonly docs: false; }; readonly NUXT_B2010: { readonly why: (p: { src: string; }) => string; readonly fix: "Use an object literal with static values as the second argument to `defineNuxtPlugin()`, and check the plugin file for syntax errors or unsupported constructs in the metadata."; readonly docs: false; }; readonly NUXT_B2011: { readonly why: (p: { src: string; }) => string; readonly fix: "Pass a string path, or an object with a `src` property, to `addPlugin()`."; readonly docs: false; }; readonly NUXT_B2012: { readonly why: (p: { name: string; dependencies: string[]; mode: "client" | "server"; }) => string; readonly fix: "Do not depend on plugins that are unavailable in the same build environment; remove them from the `dependsOn` array."; readonly docs: false; }; }, readonly [import("nostics").DiagnosticReporter<{ method?: import("nostics").ConsoleMethod; }, any>], never>; //#endregion //#region src/diagnostics/components.d.ts /** * B3xxx * Component diagnostics. * * @internal */ export declare const componentDiagnostics: import("nostics").Diagnostics<{ readonly NUXT_B3001: { readonly why: (p: { dirPath: string; }) => string; readonly fix: "If this is intentional, remove it from `components.dirs` in your `nuxt.config`."; readonly docs: false; }; readonly NUXT_B3002: { readonly why: (p: { component: string; }) => string; readonly fix: "Set `experimental.componentIslands` to `true` in your `nuxt.config`, or convert the component to a client component."; readonly docs: false; }; readonly NUXT_B3003: { readonly why: (p: { component: string; }) => string; readonly fix: "Set `experimental.componentIslands` to `true` in your `nuxt.config`."; readonly docs: false; }; readonly NUXT_B3004: { readonly why: (p: { file: string; component: string; requiredModule: string; }) => string; readonly fix: (p: { requiredModule: string; }) => string; readonly docs: false; }; readonly NUXT_B3005: { readonly why: (p: { component: string; file: string; }) => string; readonly fix: "Use only one hydration strategy attribute (e.g. `hydrate-on-visible` or `hydrate-on-idle`) per component."; readonly docs: false; }; readonly NUXT_B3006: { readonly why: (p: { component: string; file: string; }) => string; readonly fix: (p: { lazyName: string; }) => string; readonly docs: false; }; readonly NUXT_B3007: { readonly why: (p: { file: string; }) => string; readonly fix: "Set `experimental.componentIslands.selectiveClient` to `true` in your `nuxt.config`."; readonly docs: false; }; readonly NUXT_B3008: { readonly why: (p: { scannedPath: string; }) => string; readonly fix: (p: { scannedPath: string; expectedPath: string; }) => string; readonly docs: false; }; readonly NUXT_B3009: { readonly why: (p: { component: string; filePath: string; }) => string; readonly fix: "Rename the component to avoid the `Lazy` prefix."; readonly docs: false; }; readonly NUXT_B3010: { readonly why: (p: { filePath: string; }) => string; readonly fix: "Rename the component file to something other than `index` (e.g. `MyComponent.vue`)."; readonly docs: false; }; readonly NUXT_B3011: { readonly why: (p: { component: string; filePath: string; duplicatePath: string; }) => string; readonly fix: "Rename one of the files or adjust the `components.dirs` prefix settings in your `nuxt.config`."; readonly docs: false; }; readonly NUXT_B3012: { readonly why: (p: { name: string; }) => string; readonly fix: "Specify a `priority` option when calling `addComponent` to avoid this warning."; readonly docs: false; }; readonly NUXT_B3013: { readonly why: (p: { file: string; }) => string; readonly fix: "Switch to the Vite builder with `builder: 'vite'` in your `nuxt.config`."; readonly docs: false; }; }, readonly [import("nostics").DiagnosticReporter<{ method?: import("nostics").ConsoleMethod; }, any>], never>; //#endregion //#region src/diagnostics/pages.d.ts /** * B4xxx * Pages / routing diagnostics. * * @internal */ export declare const pageDiagnostics: import("nostics").Diagnostics<{ readonly NUXT_B4001: { readonly why: (p: { pathname: string; }) => string; readonly fix: "Add a `