# source_file_missing

> A file named by game.json or an import does not exist in the project.

A file named by game.json or an import does not exist in the project.

| | |
| --- | --- |
| Kind | Build or validation problem |
| Reported by | The build (source walk and TypeScript), before any archive exists |
| `disko` exit code | 1 (problems) |

A file named by `game.json` or by an import does not exist in the project, or
is not a regular file. Imports name the exact file, extension included; there
is no extension guessing and no `index` lookup. A missing `game.json` is
reported as [`manifest_invalid`](/errors/manifest_invalid).

## Wrong

```ts title="src/main.ts"
import { scoreGoal } from "./rules";
import { spawn } from "./players/";
```

## Right

```ts title="src/main.ts"
import { scoreGoal } from "./rules.ts";
import { spawn } from "./players/index.ts";
```

## See also

- [Project structure & imports](/games/project-structure)
- [`specifier_invalid`](/errors/specifier_invalid)
