Back to Withastro

Cannot use the astro:config module without enabling the experimental feature.

src/content/docs/en/reference/errors/cant-use-astro-config-module-error.mdx

latest672 B
Original Source

import DontEditWarning from '~/components/DontEditWarning.astro'

<DontEditWarning />

:::caution[Deprecated] This error is from an older version of Astro and is no longer in use. If you are unable to upgrade your project to a more recent version, then you can consult unmaintained snapshots of older documentation for assistance. :::

CantUseAstroConfigModuleError: Cannot import the module "MODULE_NAME" because the experimental feature is disabled. Enable experimental.serializeConfig in your astro.config.mjs

What went wrong?

Cannot use the module astro:config without enabling the experimental feature.