Back to Withastro

Could not import file.

src/content/docs/en/reference/errors/failed-to-load-module-ssr.mdx

latest551 B
Original Source

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

<DontEditWarning />

FailedToLoadModuleSSR: Could not import IMPORT_NAME.

What went wrong?

Astro could not import the requested file. Oftentimes, this is caused by the import path being wrong (either because the file does not exist, or there is a typo in the path)

This message can also appear when a type is imported without specifying that it is a type import.

See Also: