generated: '2026-08-27' method: searched source: https://lwc.dev/guide/error_codes provider: Lightning Web Components providerId: lightning-web-components description: 'Error-code registry published by the Lightning Web Components project. LWC is a compiler and browser/server runtime rather than an HTTP API, so its error surface is compile-time and run-time diagnostics rather than RFC 9457 problem+json responses. Codes use the format "LWC0000: Error message". An "error" is blocking and stops compilation, observed in terminal or CLI output; a "warning" is a non-blocking diagnostic, observed in the browser web console. Some LWC codes wrap errors from underlying parsers (Babel for JavaScript/TypeScript, a CSS parser for stylesheets, a template parser for HTML).' format: lwc-diagnostic-code envelope: 'LWC: ' severities: - error - warning transport: compile-time diagnostics (terminal / CLI) and run-time warnings (browser console) — not HTTP responses code_count: 109 codes: - code: LWC1001 description: Represents a generic, unexpected compilation error in the LWC compiler. severity: error - code: LWC1002 description: Represents a warning in module resolution. severity: warning - code: LWC1005 description: Represents an unsupported file extension error. severity: error - code: LWC1006 description: Represents a source type error on transform() or transformSync(). severity: error - code: LWC1007 description: Represents a JavaScript transformer error caused by a syntax error. severity: error - code: LWC1009 description: Represents a CSS transformer error when processing CSS stylesheet files. severity: error - code: LWC1011 description: Represents an import path error. severity: error - code: LWC1016 description: Raised when a Lightning web component tries to assign a value to a getter, which is not permitted. severity: error - code: LWC1021 description: Represents an error for an invalid outputConfig.sourcemap value. severity: error - code: LWC1023 description: Represents an error on the options object. severity: error - code: LWC1024 description: Represents a file content error. severity: error - code: LWC1027 description: Represents an error that's thrown when a string is expected for an ID. severity: error - code: LWC1028 description: Represents a template compiler error when the configuration parameter is not an object. severity: error - code: LWC1030 description: Represents an unrecognized property error on the template compiler. severity: error - code: LWC1034 description: Represents an error for an ambiguous attribute value. severity: error - code: LWC1035 description: Represents an ambiguous attribute value error in the template compiler. severity: error - code: LWC1036 description: Represents an error for a boolean attribute that's incorrectly set. severity: error - code: LWC1037 description: Represents a boolean attribute value error. severity: error - code: LWC1038 description: Represents a computed property access error in a template expression. severity: error - code: LWC1039 description: Represents an iterator directive error. severity: error - code: LWC1040 description: Represents an id value whitespace error. severity: error - code: LWC1041 description: Represents a static id value error. severity: error - code: LWC1042 description: Represents a duplicate id value error. severity: error - code: LWC1043 description: Represents an attribute error on an event handler. severity: error - code: LWC1044 description: Represents an error that's caused by using the for:each or for:item directive without the other. severity: error - code: LWC1045 description: Represents a literal value error on a for:each directive. severity: error - code: LWC1046 description: Represents a value error on the for:index directive. severity: error - code: LWC1047 description: Represents a value error on the for:item directive. severity: error - code: LWC1048 description: Represents an error that occurs when the srcdoc attribute is used on an iframe. severity: error - code: LWC1049 description: Represents an SVG tag error in the namespace. severity: error - code: LWC1050 description: Represents an invalid MathML tag error. severity: error - code: LWC1051 description: Represents a forbidden template tag error. severity: error - code: LWC1052 description: Represents an unexpected error during template compilation. severity: error - code: LWC1054 description: Represents an error that occurs when the if:* directive is assigned to a string literal or has no value. severity: error - code: LWC1055 description: Represents a case error in HTML attribute names. severity: error - code: LWC1056 description: Represents a naming error on an event handler attribute. severity: error - code: LWC1057 description: Represents a warning when an invalid attribute is used on an HTML element. severity: warning - code: LWC1058 description: Represents an invalid HTML syntax error. severity: error - code: LWC1063 description: Represents an is attribute error. severity: error - code: LWC1064 description: Represents a key attribute error. severity: error - code: LWC1065 description: Represents an invalid key value on an element. severity: error - code: LWC1066 description: Represents an invalid key value for an element. severity: error - code: LWC1071 description: Represents an error for a missing key for an element in an iterator. severity: error - code: LWC1072 description: Represents an error for a missing root template tag. severity: error - code: LWC1074 description: Represents an error for an expression that contains a semicolon. severity: error - code: LWC1075 description: Represents an error for a template that contains more than one root-level node. severity: error - code: LWC1076 description: Represents an error for a slot name is assigned to a dynamic expression. severity: error - code: LWC1077 description: Represents an error for a non-root template tag that doesn't contain a directive. severity: error - code: LWC1078 description: Represents an error for a missing closing tag. severity: error - code: LWC1079 description: Represents an error for a missing root