# Build diagnostics

> Every error and warning of a component build, by code: what it means and how to fix it.

Every error and warning of a component build, and of the creation of a version from it (stage `version`), has one of these codes. Type errors from the TypeScript compiler share one page, [`TS…`](https://taggor.dev/docs/diagnostics/TS.md): the number after `TS` is the compiler's own.

| Code                           | Stage     | Severity         | Source of issue  | Description |
| ------------------------------ | --------- | ---------------- | ---------------- | ----------------------------------------------------------------------------------- |
| `SOURCE_NOT_FOUND`             | source    | error            | Taggor platform  | [Source package not found](https://taggor.dev/docs/diagnostics/SOURCE_NOT_FOUND.md) |
| `SOURCE_TOO_LARGE`             | source    | error            | Component source | [Source package too large](https://taggor.dev/docs/diagnostics/SOURCE_TOO_LARGE.md) |
| `SOURCE_INVALID`               | source    | error            | Component source | [Invalid source package](https://taggor.dev/docs/diagnostics/SOURCE_INVALID.md) |
| `SOURCE_PATH_NOT_ALLOWED`      | source    | error            | Component source | [File path not allowed](https://taggor.dev/docs/diagnostics/SOURCE_PATH_NOT_ALLOWED.md) |
| `SOURCE_ENTRY_NOT_ALLOWED`     | source    | error            | Component source | [Link or special file not allowed](https://taggor.dev/docs/diagnostics/SOURCE_ENTRY_NOT_ALLOWED.md) |
| `SOURCE_EXTENSION_NOT_ALLOWED` | source    | error            | Component source | [File type not allowed](https://taggor.dev/docs/diagnostics/SOURCE_EXTENSION_NOT_ALLOWED.md) |
| `SOURCE_CONFIG_NOT_ALLOWED`    | source    | error            | Component source | [Executable config file](https://taggor.dev/docs/diagnostics/SOURCE_CONFIG_NOT_ALLOWED.md) |
| `SOURCE_METADATA_INVALID`      | source    | error            | Component source | [Invalid taggor.json or package.json](https://taggor.dev/docs/diagnostics/SOURCE_METADATA_INVALID.md) |
| `ENTRY_NOT_FOUND`              | source    | error            | Component source | [Entry file not found](https://taggor.dev/docs/diagnostics/ENTRY_NOT_FOUND.md) |
| `SECRET_IN_SOURCE`             | source    | error            | Component source | [Secret in the component's code](https://taggor.dev/docs/diagnostics/SECRET_IN_SOURCE.md) |
| `DEPENDENCY_LOCK_MISSING`      | source    | error            | Component source | [No package-lock.json](https://taggor.dev/docs/diagnostics/DEPENDENCY_LOCK_MISSING.md) |
| `DEPENDENCY_LOCK_INVALID`      | source    | error            | Component source | [package-lock.json cannot be used](https://taggor.dev/docs/diagnostics/DEPENDENCY_LOCK_INVALID.md) |
| `DEPENDENCY_MALICIOUS`         | source    | error            | Component source | [Malicious npm package](https://taggor.dev/docs/diagnostics/DEPENDENCY_MALICIOUS.md) |
| `DEPENDENCY_UNAVAILABLE`       | source    | error            | Component source | [npm package cannot be used](https://taggor.dev/docs/diagnostics/DEPENDENCY_UNAVAILABLE.md) |
| `COMPILE_ERROR`                | compile   | error            | Component source | [Compile error](https://taggor.dev/docs/diagnostics/COMPILE_ERROR.md) |
| `COMPILE_WARNING`              | compile   | warning          | Component source | [Compile warning](https://taggor.dev/docs/diagnostics/COMPILE_WARNING.md) |
| `MODULE_NOT_FOUND`             | compile   | error            | Component source | [Imported file not found](https://taggor.dev/docs/diagnostics/MODULE_NOT_FOUND.md) |
| `EXPORT_NOT_FOUND`             | compile   | error            | Component source | [Imported name not exported](https://taggor.dev/docs/diagnostics/EXPORT_NOT_FOUND.md) |
| `REACT_API_UNSUPPORTED`        | compile   | error or warning | Component source | [React API not supported](https://taggor.dev/docs/diagnostics/REACT_API_UNSUPPORTED.md) |
| `MODULE_NOT_ALLOWED`           | compile   | error            | Component source | [Import not allowed](https://taggor.dev/docs/diagnostics/MODULE_NOT_ALLOWED.md) |
| `IMPORT_ATTRIBUTE_REFUSED`     | compile   | error            | Component source | [Import attribute refused](https://taggor.dev/docs/diagnostics/IMPORT_ATTRIBUTE_REFUSED.md) |
| `TAILWIND_CONFIG_NOT_ALLOWED`  | compile   | error            | Component source | [Tailwind @plugin or @config not allowed](https://taggor.dev/docs/diagnostics/TAILWIND_CONFIG_NOT_ALLOWED.md) |
| `CSS_INVALID`                  | compile   | warning          | Component source | [Invalid CSS](https://taggor.dev/docs/diagnostics/CSS_INVALID.md) |
| `TS`                           | typecheck | error            | Component source | [TypeScript type error](https://taggor.dev/docs/diagnostics/TS.md) |
| `MANIFEST_INVALID`             | manifest  | error            | Component source | [Invalid component declaration](https://taggor.dev/docs/diagnostics/MANIFEST_INVALID.md) |
| `MANIFEST_EXTRACTION_TIMEOUT`  | manifest  | error            | Component source | [Component declaration took too long](https://taggor.dev/docs/diagnostics/MANIFEST_EXTRACTION_TIMEOUT.md) |
| `MANIFEST_EXTRACTION_FAILED`   | manifest  | error            | Component source | [Component module failed to load](https://taggor.dev/docs/diagnostics/MANIFEST_EXTRACTION_FAILED.md) |
| `STYLE_REFERENCE_UNDECLARED`   | manifest  | error            | Component source | [CSS uses an undeclared variable or part](https://taggor.dev/docs/diagnostics/STYLE_REFERENCE_UNDECLARED.md) |
| `DEPENDENCY_CODE_FLAGGED`      | output    | warning          | Component source | [npm package code matches a security rule](https://taggor.dev/docs/diagnostics/DEPENDENCY_CODE_FLAGGED.md) |
| `STYLESHEET_NOT_BUNDLED`       | output    | error            | Taggor platform  | [A stylesheet did not reach the component's bundle](https://taggor.dev/docs/diagnostics/STYLESHEET_NOT_BUNDLED.md) |
| `OUTPUT_TOO_LARGE`             | output    | error            | Component source | [Build output too large](https://taggor.dev/docs/diagnostics/OUTPUT_TOO_LARGE.md) |
| `ASSET_TOO_LARGE`              | output    | error            | Component source | [Asset too large](https://taggor.dev/docs/diagnostics/ASSET_TOO_LARGE.md) |
| `ASSET_INVALID`                | output    | error            | Component source | [Asset is not what its name says](https://taggor.dev/docs/diagnostics/ASSET_INVALID.md) |
| `ASSET_METADATA`               | output    | error            | Component source | [Image Taggor cannot verify as metadata-free](https://taggor.dev/docs/diagnostics/ASSET_METADATA.md) |
| `ASSET_SVG_UNSAFE`             | output    | error            | Component source | [SVG with active content](https://taggor.dev/docs/diagnostics/ASSET_SVG_UNSAFE.md) |
| `SIZE_BUDGET_EXCEEDED`         | output    | warning          | Component source | [Component over the suggested size](https://taggor.dev/docs/diagnostics/SIZE_BUDGET_EXCEEDED.md) |
| `QUALITY_GATE_FAILED`          | output    | error            | Component source | [Quality gate could not finish](https://taggor.dev/docs/diagnostics/QUALITY_GATE_FAILED.md) |
| `UNSAFE_EVAL`                  | output    | error            | Component source | [eval in the component](https://taggor.dev/docs/diagnostics/UNSAFE_EVAL.md) |
| `UNSAFE_FUNCTION_CONSTRUCTOR`  | output    | error            | Component source | [Function constructor in the component](https://taggor.dev/docs/diagnostics/UNSAFE_FUNCTION_CONSTRUCTOR.md) |
| `UNSAFE_DOCUMENT_WRITE`        | output    | error            | Component source | [document.write in the component](https://taggor.dev/docs/diagnostics/UNSAFE_DOCUMENT_WRITE.md) |
| `UNSAFE_COOKIE_ACCESS`         | output    | warning          | Component source | [Component reads the page's cookies](https://taggor.dev/docs/diagnostics/UNSAFE_COOKIE_ACCESS.md) |
| `UNSAFE_STORAGE_ACCESS`        | output    | warning          | Component source | [Component uses the page's storage](https://taggor.dev/docs/diagnostics/UNSAFE_STORAGE_ACCESS.md) |
| `UNSAFE_HOST_DOM`              | output    | error            | Component source | [Component touches the page's DOM](https://taggor.dev/docs/diagnostics/UNSAFE_HOST_DOM.md) |
| `UNSAFE_SCRIPT_ELEMENT`        | output    | error            | Component source | [Component creates a script element](https://taggor.dev/docs/diagnostics/UNSAFE_SCRIPT_ELEMENT.md) |
| `UNSAFE_DYNAMIC_SCRIPT`        | output    | error            | Component source | [Component runs a script built at run time](https://taggor.dev/docs/diagnostics/UNSAFE_DYNAMIC_SCRIPT.md) |
| `UNSAFE_DYNAMIC_IMPORT`        | output    | error            | Component source | [Dynamic import in the component](https://taggor.dev/docs/diagnostics/UNSAFE_DYNAMIC_IMPORT.md) |
| `UNDECLARED_NETWORK`           | output    | error            | Component source | [Network request to an undeclared origin](https://taggor.dev/docs/diagnostics/UNDECLARED_NETWORK.md) |
| `MINING_PATTERN`               | output    | error            | Component source | [Crypto mining pattern](https://taggor.dev/docs/diagnostics/MINING_PATTERN.md) |
| `UNSAFE_HTML_SINK`             | output    | error            | Component source | [HTML written from a string](https://taggor.dev/docs/diagnostics/UNSAFE_HTML_SINK.md) |
| `UNSAFE_TOP_NAVIGATION`        | output    | error            | Component source | [Component navigates the top window](https://taggor.dev/docs/diagnostics/UNSAFE_TOP_NAVIGATION.md) |
| `UNSAFE_PREACT_OPTIONS`        | output    | error            | Component source | [Component uses Preact's global options](https://taggor.dev/docs/diagnostics/UNSAFE_PREACT_OPTIONS.md) |
| `UNSAFE_PREACT_INTERNALS`      | output    | error            | Component source | [Component accesses Preact internals](https://taggor.dev/docs/diagnostics/UNSAFE_PREACT_INTERNALS.md) |
| `UNSAFE_GLOBAL_ACCESS`         | output    | error            | Component source | [Computed access to a global object](https://taggor.dev/docs/diagnostics/UNSAFE_GLOBAL_ACCESS.md) |
| `UNSAFE_INLINE_HANDLER`        | output    | error            | Component source | [Event handler from a string](https://taggor.dev/docs/diagnostics/UNSAFE_INLINE_HANDLER.md) |
| `UNSAFE_STRING_TIMER`          | output    | error            | Component source | [Timer given a string](https://taggor.dev/docs/diagnostics/UNSAFE_STRING_TIMER.md) |
| `OBFUSCATED_CODE`              | output    | error            | Component source | [Obfuscated code](https://taggor.dev/docs/diagnostics/OBFUSCATED_CODE.md) |
| `HIGH_ENTROPY_STRING`          | output    | warning          | Component source | [String that looks like random data](https://taggor.dev/docs/diagnostics/HIGH_ENTROPY_STRING.md) |
| `EXTERNAL_IMAGE`               | output    | warning          | Component source | [Image from another site](https://taggor.dev/docs/diagnostics/EXTERNAL_IMAGE.md) |
| `CREDENTIAL_CAPTURE`           | output    | error            | Component source | [Component asks for credentials](https://taggor.dev/docs/diagnostics/CREDENTIAL_CAPTURE.md) |
| `CREDENTIAL_COLLECTION_FIELD`  | output    | error            | Component source | [Collection field for a credential](https://taggor.dev/docs/diagnostics/CREDENTIAL_COLLECTION_FIELD.md) |
| `VIEWPORT_OVERLAY`             | output    | warning          | Component source | [Layer over the whole viewport](https://taggor.dev/docs/diagnostics/VIEWPORT_OVERLAY.md) |
| `UNSAFE_RUNTIME_CSS`           | output    | error            | Component source | [CSS built at run time](https://taggor.dev/docs/diagnostics/UNSAFE_RUNTIME_CSS.md) |
| `UNSAFE_ELEMENT`               | output    | error            | Component source | [Element that changes the page](https://taggor.dev/docs/diagnostics/UNSAFE_ELEMENT.md) |
| `UNSAFE_TAGGOR_GLOBAL`         | output    | error            | Component source | [Component writes the taggor global](https://taggor.dev/docs/diagnostics/UNSAFE_TAGGOR_GLOBAL.md) |
| `BUILD_TIMEOUT`                | build     | error            | Component source | [Build took too long](https://taggor.dev/docs/diagnostics/BUILD_TIMEOUT.md) |
| `LIMIT_EXCEEDED`               | build     | error            | Component source | [Plan limit exceeded](https://taggor.dev/docs/diagnostics/LIMIT_EXCEEDED.md) |
| `BUILDER_RESPONSE_INVALID`     | build     | error            | Taggor platform  | [Builder answered outside the protocol](https://taggor.dev/docs/diagnostics/BUILDER_RESPONSE_INVALID.md) |
| `INTERNAL_ERROR`               | build     | error            | Taggor platform  | [Internal builder error](https://taggor.dev/docs/diagnostics/INTERNAL_ERROR.md) |
| `BUILD_STUCK`                  | build     | error            | Taggor platform  | [Build ended after the processing time](https://taggor.dev/docs/diagnostics/BUILD_STUCK.md) |
| `CONTAINER_START_TIMEOUT`      | build     | error            | Taggor platform  | [Build container did not start in time](https://taggor.dev/docs/diagnostics/CONTAINER_START_TIMEOUT.md) |
| `DEPENDENCY_CHECK_UNAVAILABLE` | build     | error            | Taggor platform  | [npm packages could not be checked for malware](https://taggor.dev/docs/diagnostics/DEPENDENCY_CHECK_UNAVAILABLE.md) |
| `BREAKING_PROP_CHANGE`         | version   | warning          | Component source | [Breaking prop change](https://taggor.dev/docs/diagnostics/BREAKING_PROP_CHANGE.md) |
| `BREAKING_EVENT_CHANGE`        | version   | warning          | Component source | [Breaking event change](https://taggor.dev/docs/diagnostics/BREAKING_EVENT_CHANGE.md) |
| `BREAKING_SLOT_CHANGE`         | version   | warning          | Component source | [Slot removed](https://taggor.dev/docs/diagnostics/BREAKING_SLOT_CHANGE.md) |
| `BREAKING_STYLE_CHANGE`        | version   | warning          | Component source | [Breaking style change](https://taggor.dev/docs/diagnostics/BREAKING_STYLE_CHANGE.md) |
| `BASE_MANIFEST_UNREADABLE`     | version   | warning          | Taggor platform  | [Previous manifest could not be compared](https://taggor.dev/docs/diagnostics/BASE_MANIFEST_UNREADABLE.md) |
| `SEMVER_BUMP_TOO_SMALL`        | version   | error            | Component source | [Semver too small](https://taggor.dev/docs/diagnostics/SEMVER_BUMP_TOO_SMALL.md) |
