# Bundle diagnostics

<!-- Generated by docs/modules/diagnostics from the package catalogs. Write a guide in docs/diagnostics/<CODE>.md instead of editing this file. -->

Each Bundle error has a stable `code`. Its `docs` link opens the page of that code. This page lists all 4 codes, and [All diagnostics](https://vitehub.dev/docs/reference/diagnostics) lists every primitive.

## Errors

| Code | What happened |
| --- | --- |
| [`BUNDLE_DEV_SERVER_REQUIRED`](https://vitehub.dev/docs/bundle/diagnostics/bundle_dev_server_required) | The bundle report is a file of the build in `.vitehub/bundle/`. Only the dev server of the project can read it. A deployed server has no project files. |
| [`BUNDLE_HOST_SIZE_LIMIT`](https://vitehub.dev/docs/bundle/diagnostics/bundle_host_size_limit) | The server JavaScript is \<bytes\> before compression. Cloudflare rejects a Worker over \<limit\> (64 MiB), and the deployment also counts files other than JavaScript. |
| [`BUNDLE_REPORT_MISSING`](https://vitehub.dev/docs/bundle/diagnostics/bundle_report_missing) | There is no bundle report in `.vitehub/bundle/`. No production build with `bundle: true` ran in this project. |
| [`BUNDLE_STARTUP_UNUSED`](https://vitehub.dev/docs/bundle/diagnostics/bundle_startup_unused) | \<value\> \<value\> at server startup. \<reason\> |

<!-- vitehub-docs:section-links -->
## In this section

- [Overview](https://vitehub.dev/raw/docs/bundle.md)
- [Get started](https://vitehub.dev/raw/docs/bundle/get-started.md)
- [Read the report](https://vitehub.dev/raw/docs/bundle/report.md)
- [Checks](https://vitehub.dev/raw/docs/bundle/checks.md)
- [Reference](https://vitehub.dev/raw/docs/bundle/reference.md)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
