---
title: "invalid-resource"
description: "A locale file or source file that x18n failed to read, parse or scan."
canonical_url: "https://x18n.dev/checks/invalid-resource"
---
# invalid-resource

> A locale file or source file that x18n failed to read, parse or scan.

<!-- Generated by docs/scripts/generate.ts from the source code. Do not edit. -->

A locale file or source file that x18n failed to read, parse or scan.

The message ends with the error code, for example `(X18N2002)`. The [error page](https://x18n.dev/errors) of that code tells you what to do.

Files that x18n cannot parse as locale files are errors. Source files that a scanner cannot parse are warnings. You cannot turn this diagnostic off in `checks`. To skip a source file, exclude it with `usage.exclude`.

## Source

- [`packages/core/src/project/analysis.ts`](https://github.com/x18n-dev/x18n/blob/main/packages/core/src/project/analysis.ts)


## Sitemap

See the full [sitemap](https://x18n.dev/sitemap.md) for all pages.
