file_too_large
One module exceeds 2 MiB or one asset exceeds 16 MiB.
One module exceeds 2 MiB or one asset exceeds 16 MiB.
| Kind | Build or validation problem |
| Reported by | Archive and source validation |
disko exit code | 1 (problems) |
A single file is over its size limit: 2 MiB for a module (.js or .ts),
16 MiB for an asset. The problem names the file and its size.
Why it happens
Large modules are usually generated data (level tables, embedded images as base64) pasted into source. Large assets are usually uncompressed audio or oversized images.
Wrong
src/levels.js
Right
text
Split data across modules, or shrink the asset (for example WAV to Ogg). The package still has to fit within 10 MiB compressed.