Build diagnostics
Este conteúdo não está disponível em sua língua ainda.
Every error and warning of a component build, and of the creation of a version from it (stage version), has one of these codes (BuildDiagnostic, packages/contract/src/build-diagnostic.ts). TS stands for every TypeScript code (TS2322).
| Code | Stage | Severity | Fault | en |
|---|---|---|---|---|
SOURCE_NOT_FOUND |
source | error | platform | Source package not found |
SOURCE_TOO_LARGE |
source | error | customer | Source package too large |
SOURCE_INVALID |
source | error | customer | Invalid source package |
SOURCE_PATH_NOT_ALLOWED |
source | error | customer | File path not allowed |
SOURCE_ENTRY_NOT_ALLOWED |
source | error | customer | Link or special file not allowed |
SOURCE_EXTENSION_NOT_ALLOWED |
source | error | customer | File type not allowed |
SOURCE_CONFIG_NOT_ALLOWED |
source | error | customer | Executable config file |
SOURCE_METADATA_INVALID |
source | error | customer | Invalid taggor.json or package.json |
ENTRY_NOT_FOUND |
source | error | customer | Entry file not found |
SECRET_IN_SOURCE |
source | error | customer | Secret in the component’s code |
COMPILE_ERROR |
compile | error | customer | Compile error |
COMPILE_WARNING |
compile | warning | customer | Compile warning |
MODULE_NOT_FOUND |
compile | error | customer | Imported file not found |
EXPORT_NOT_FOUND |
compile | error | customer | Imported name not exported |
REACT_API_UNSUPPORTED |
compile | warning | customer | React API not supported |
MODULE_NOT_ALLOWED |
compile | error | customer | Import not allowed |
DEPENDENCY_NOT_ALLOWED |
compile | error | customer | Package not allowed |
IMPORT_ATTRIBUTE_REFUSED |
compile | error | customer | Import attribute refused |
TAILWIND_CONFIG_NOT_ALLOWED |
compile | error | customer | Tailwind @plugin or @config not allowed |
CSS_INVALID |
compile | warning | customer | Invalid CSS |
TS |
typecheck | error | customer | TypeScript type error |
MANIFEST_INVALID |
manifest | error | customer | Invalid component declaration |
MANIFEST_EXTRACTION_TIMEOUT |
manifest | error | customer | Component declaration took too long |
MANIFEST_EXTRACTION_FAILED |
manifest | error | customer | Component module failed to load |
STYLE_REFERENCE_UNDECLARED |
manifest | error | customer | CSS uses an undeclared variable or part |
STYLESHEET_NOT_BUNDLED |
output | error | platform | A stylesheet did not reach the component’s bundle |
OUTPUT_TOO_LARGE |
output | error | customer | Build output too large |
ASSET_TOO_LARGE |
output | error | customer | Asset too large |
ASSET_INVALID |
output | error | customer | Asset is not what its name says |
ASSET_METADATA |
output | error | customer | Image Taggor cannot verify as metadata-free |
ASSET_SVG_UNSAFE |
output | error | customer | SVG with active content |
SIZE_BUDGET_EXCEEDED |
output | error | customer | Component over the size budget |
QUALITY_GATE_FAILED |
output | error | customer | Quality gate could not finish |
UNSAFE_EVAL |
output | error | customer | eval in the component |
UNSAFE_FUNCTION_CONSTRUCTOR |
output | error | customer | Function constructor in the component |
UNSAFE_DOCUMENT_WRITE |
output | error | customer | document.write in the component |
UNSAFE_COOKIE_ACCESS |
output | error | customer | Component reads the page’s cookies |
UNSAFE_STORAGE_ACCESS |
output | error | customer | Component uses the page’s storage |
UNSAFE_HOST_DOM |
output | error | customer | Component touches the page’s DOM |
UNSAFE_SCRIPT_ELEMENT |
output | error | customer | Component creates a script element |
UNSAFE_DYNAMIC_SCRIPT |
output | error | customer | Component runs a script built at run time |
UNSAFE_DYNAMIC_IMPORT |
output | error | customer | Dynamic import in the component |
UNDECLARED_NETWORK |
output | error | customer | Network request to an undeclared origin |
MINING_PATTERN |
output | error | customer | Crypto mining pattern |
UNSAFE_HTML_SINK |
output | error | customer | HTML written from a string |
UNSAFE_TOP_NAVIGATION |
output | error | customer | Component navigates the top window |
UNSAFE_PREACT_OPTIONS |
output | error | customer | Component uses Preact’s global options |
UNSAFE_PREACT_INTERNALS |
output | error | customer | Component accesses Preact internals |
UNSAFE_GLOBAL_ACCESS |
output | error | customer | Computed access to a global object |
UNSAFE_INLINE_HANDLER |
output | error | customer | Event handler from a string |
UNSAFE_STRING_TIMER |
output | error | customer | Timer given a string |
OBFUSCATED_CODE |
output | error | customer | Obfuscated code |
HIGH_ENTROPY_STRING |
output | warning | customer | String that looks like random data |
EXTERNAL_IMAGE |
output | warning | customer | Image from another site |
CREDENTIAL_CAPTURE |
output | error | customer | Component asks for credentials |
CREDENTIAL_COLLECTION_FIELD |
output | error | customer | Collection field for a credential |
CONSENT_FORGED |
output | error | customer | Consent given by the component |
CONSENT_NOT_SHOWN |
output | error | customer | Consent text not shown |
VIEWPORT_OVERLAY |
output | error | customer | Layer over the whole viewport |
UNSAFE_RUNTIME_CSS |
output | error | customer | CSS built at run time |
UNSAFE_ELEMENT |
output | error | customer | Element that changes the page |
UNSAFE_TAGGOR_GLOBAL |
output | error | customer | Component writes the taggor global |
BUILD_TIMEOUT |
build | error | customer | Build took too long |
LIMIT_EXCEEDED |
build | error | customer | Plan limit exceeded |
BUILDER_RESPONSE_INVALID |
build | error | platform | Builder answered outside the protocol |
INTERNAL_ERROR |
build | error | platform | Internal builder error |
BUILD_STUCK |
build | error | platform | Build stopped by the builder |
CONTAINER_START_TIMEOUT |
build | error | platform | Build container did not start in time |
BREAKING_PROP_CHANGE |
version | warning | customer | Breaking prop change |
BREAKING_EVENT_CHANGE |
version | warning | customer | Breaking event change |
BREAKING_SLOT_CHANGE |
version | warning | customer | Slot removed |
BREAKING_STYLE_CHANGE |
version | warning | customer | Breaking style change |
BASE_MANIFEST_UNREADABLE |
version | warning | platform | Previous manifest could not be compared |
SEMVER_BUMP_TOO_SMALL |
version | error | customer | Semver too small |