diff --git a/src/content/docs/en/reference/error-reference.mdx b/src/content/docs/en/reference/error-reference.mdx index 6b1c96e715a64..af51e954286eb 100644 --- a/src/content/docs/en/reference/error-reference.mdx +++ b/src/content/docs/en/reference/error-reference.mdx @@ -105,6 +105,7 @@ The following reference is a complete list of the errors you may encounter while - [**UnavailableAstroGlobal**](/en/reference/errors/unavailable-astro-global/)
Unavailable Astro global in `getStaticPaths()`. - [**UnableToLoadLogger**](/en/reference/errors/unable-to-load-logger/)
Unable to load the logger. - [**LoggerConfigurationNotSerializable**](/en/reference/errors/logger-configuration-not-serializable/)
The configuration of the logger is not serializable. +- [**NoManifestAvailable**](/en/reference/errors/no-manifest-available/)
No manifest available. ## CSS Errors diff --git a/src/content/docs/en/reference/errors/no-manifest-available.mdx b/src/content/docs/en/reference/errors/no-manifest-available.mdx new file mode 100644 index 0000000000000..a311c762820cb --- /dev/null +++ b/src/content/docs/en/reference/errors/no-manifest-available.mdx @@ -0,0 +1,27 @@ +--- +# NOTE: This file is auto-generated from 'scripts/error-docgen.mjs' +# Do not make edits to it directly, they will be overwritten. +# Instead, change this file: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts +# Translators, please remove this note and the component. + +title: No manifest available. +i18nReady: true +githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts +--- +import DontEditWarning from '~/components/DontEditWarning.astro' + + + + +> `new FetchState(request)` was called outside of an Astro server, so no manifest is available. + +## What went wrong? +`new FetchState(request)` can only be used inside an Astro server — the built +server output or the dev server — where Astro provides the manifest describing +your site. This error means it was called somewhere else, for example in a +plain Node script that imports `astro/fetch`. + +If this error occurs inside an Astro-built server, please [open an issue](https://astro.build/issues/). + + +