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