跳到主要内容
EnglishEnglish查看本页的英文版本。
浏览文档

错误码

粘贴错误码或一行构建或运行时日志。本清单对应源码版本 v1.0.0-alpha.16。

构建诊断信封

编译器诊断

先查看第一条标明源文件的错误。根据文件、行列和完整消息定位出错的代码。若诊断的生成方提供了提示,诊断信封也会包含该提示。

OEC9000

编译器语法

含义
TypeScript 无法解析此源文件。
检查步骤

打开构建输出中所指的文件和行列,按随附的 TypeScript 消息修正语法,然后重新构建。

构建诊断信封
编译器源码位置

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/compiler-diagnostics.ts:67 packages/compiler/src/internal/compiler/semantic-core/function-frontend.ts:1920 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:436

OEC9007

编译器语法

含义
组件的渲染结果需要一个 JSX 根元素。
检查步骤

检查返回表达式。若并列返回了多个根节点,用一个元素包住它们,再返回该元素。

组件 setup
英文消息变体和源码位置

a server function component must be a single return of one JSX element a server function component must return one element render() must return a single JSX element

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:619 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:231 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:549

OEC9010

编译器语法

含义
此处的 JSX 标签不合法或不受支持。
检查步骤

检查消息中指明的标签,使用受支持的 HTML 标签或已注册的自定义元素标签名。按标识符调用服务端函数时,遵守服务端函数的组合规则。

JSX 组合
英文消息变体和源码位置

component tag <…> is outside the compiler grammar (intrinsic lowercase elements and custom-element hosts only) — custom elements compose by tag name — use the tag string, not the class value itemTagReason list Block item must be an intrinsic lowercase element or a custom-element host — compose by tag name, not class values tag <…> is a … tagReason

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/function-frontend.ts:1636 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:656 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:661 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1693 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1699

OEC9011

编译器语法

含义
HTML 特性或绑定不符合该元素或作用域的语法。
检查步骤

检查消息指明的特性或属性及其允许的值,留意它说的是字面量、声明的 prop、列表项还是 ref。

HTML 特性绑定
英文消息变体和源码位置

attribute "…" must be a literal or a supported expression attribute "…" must be a literal, this.<property>, or a supported expression attribute "…" only accepts primitive literal values — use a string, number or boolean literal (objects and arrays have no attribute form) attribute name "innerHTML" is unsafe as a static attribute — innerHTML opens only through the trusted-HTML sink: bind an Object-typed trustedHtml(...) property and carry the literal trustedHtml marker attribute name "…" is unsafe — names must be valid HTML attribute names, not event handlers (on*) or forbidden sinks; use an admitted attribute name conditional class branches must be string literals: class={this.<cond> ? 'a' : 'b'} conditional class conditions must read at least one ….<property> duplicate attribute "…" is unsupported — remove one; an element admits each attribute once item template attribute "…" must be a static literal or {….<field>} item template attributes must use primitive literals — use a string, number or boolean literal, or bind {….<field>} key is only supported on the list Block item root list Block items do not support spread attributes — write each attribute explicitly (a literal or {<item>.<field>}) property sink name "…" is unsafe — prototype-pollution primitives are on the shared deny list on every boundary; rename the attribute property sink name "…" is unsafe — prototype-pollution primitives are on the shared deny list on every boundary; rename the sink ref must reference this.<field> spread attributes are not supported by the compiler grammar — write each attribute explicitly (a literal or a this.<property> sink) spread attributes are not supported in item templates — write each attribute explicitly (a literal or {<item>.<field>}) … — the shared deny list screens every boundary; rename the attribute

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/function-frontend.ts:1755 packages/compiler/src/internal/compiler/semantic-core/function-frontend.ts:1764 packages/compiler/src/internal/compiler/semantic-core/function-frontend.ts:1791 packages/compiler/src/internal/compiler/semantic-core/function-frontend.ts:1811 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:687 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:723 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:742 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:752 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:770 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:808 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:867 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:882 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:890 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1024 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1236 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1261 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1350 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1361 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1375 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1610 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1708 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1716 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1732 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1741 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1759 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1820 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1828

OEC9012

编译器语法

含义
条件分支或嵌套 Block 无法按当前写法编译。
检查步骤

检查提示的分支中是否有嵌套、受限的文本、ref 或处理器。若条件只改变文本,先派生文本,再绑定。

条件 JSX
英文消息变体和源码位置

a text-only ternary is not a Block — Blocks swap elements; derive the text in a computed(...) property and interpolate {this.<property>} conditional Block branches must be single static JSX elements — each branch is exactly one element (bind its values as this.<property> attributes) event handlers are only supported on list Block item templates nested Blocks are outside the compiler grammar nested ternaries are outside the compiler grammar — one condition per Block; derive the decision in a computed(...) property and branch on it … — a branch cannot interpolate text; bind the value as an attribute (e.g. data-label={this.<property>}) … — a ref cannot bind inside a branch … — an event handler cannot bind inside a branch … — an inline conditional class cannot bind inside a branch

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:779 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:805 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:826 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1451 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1470 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1484 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1556 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1564 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1571 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1789

OEC9013

编译器语法

含义
编译器拒绝了某个 JSX 子节点、表达式或列表映射函数。
检查步骤

根据完整消息定位被拒绝的值。若涉及带 key 的列表,检查映射函数的参数和它返回的单个 JSX 项;若涉及空元素,移除它的子节点。

JSX 组合
英文消息变体和源码位置

JSX fragments and spreads are outside the compiler grammar — wrap the fragment's children in a single element conditional Blocks support this.<property> compared with a numeric literal (>, >=, <, <=), a number/string/boolean equality (===, !==), or a bare this.<property> (optionally negated) truthiness test dynamic child literals must be primitive values item child must be {….<field>} item templates support static text, item values and intrinsic elements list Block items must bind at least one {<item>.<field>} value or attribute slot list Block mapper must be a single-parameter arrow function list Block mapper must return one JSX element list Blocks must map over this.<property> list Blocks support exactly this.<property>.map(...) sink … cannot anchor in server function output unsupported condition … unsupported dynamic expression; use this.<property>, a supported condition, or this.<array>.map(...) void element <…> may not have children

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/function-frontend.ts:1646 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:924 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:976 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1463 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1490 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1524 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1584 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1587 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1594 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1597 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1601 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1650 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1841 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1873 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1897 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:825 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:858

OEC9014

编译器语法

含义
列表项缺少合法的 key 绑定。
检查步骤

在每个列表项的根节点上绑定一次 key,例如 key={item.id}。确认该字段在更新前后都能标识同一个列表项。

JSX 组合
英文消息变体和源码位置

key must be key={<item>.<field>} key must reference ….<field> list Block items may declare key only once list Block items require key={<item>.<field>}

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1616 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1622 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1633 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1636

OEC9016

编译器语法

含义
编译器无法转换该事件操作。
检查步骤

检查消息指明的操作,将它简化为一个受支持的操作,或把逻辑移入该组件支持的处理器形式。

事件处理器
英文消息变体和源码位置

event arithmetic supports only numeric += or -= literals event arrow handlers must contain exactly one supported action event assignment values must be serializable literals event handlers must be this.<method> or a single-action arrow event mutations support only this.<number>++ or -- unsupported event action; use this.<field>++, assignment or this.<method>()

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1120 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1132 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1163 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1175 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1192 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1200

OEC9017

编译器语法

含义
当前编译路径拒绝了自定义元素宿主上的处理器、ref 或子节点。
检查步骤

按消息定位被拒绝的项。若涉及处理器或 ref,检查组件允许的元素或生命周期位置;若涉及子节点,核对宿主的插槽或 props 契约。

JSX 组合
英文消息变体和源码位置

custom-element host <…> may not carry a ref — query the host imperatively in a lifecycle method (e.g. connectedCallback) custom-element host <…> may not carry event handlers — bind the handler on an intrinsic element, or attach the listener imperatively in a lifecycle method custom-element host <…> may not have children in the compiler grammar (slots are unsupported)

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:715 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:799 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1781 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1846

OEC9024

编译器语法

含义
计算表达式或对计算结果的赋值未通过校验。
检查步骤

按消息检查,直接读取或更新声明的源属性。若报告指向嵌套函数,将它移至受支持的作用域。

组件 setup
英文消息变体和源码位置

event actions may not write computed field "…" — assign its source properties … may not nest non-arrow functions — hoist the function to module scope and import it … may not read computed field "…" — read its source this.<property> inputs instead (computed fields cannot chain) … may not read computed field "…" — read its source ….<property> inputs instead (computed fields cannot chain) … may only read this.<declared property> (found this.…) … may only read ….<declared property> (found ….…) … may only reference this.<property>

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/analyze-module.ts:165 packages/compiler/src/internal/compiler/semantic-core/analyze-module.ts:180 packages/compiler/src/internal/compiler/semantic-core/analyze-module.ts:188 packages/compiler/src/internal/compiler/semantic-core/analyze-module.ts:202 packages/compiler/src/internal/compiler/semantic-core/analyze-module.ts:210 packages/compiler/src/internal/compiler/semantic-core/analyze-module.ts:219 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1151

OEC9026

编译器语法

含义
innerHTML 绑定未通过编译器的可信 HTML 检查。
检查步骤

检查消息指明的可信值、能力声明或目标元素要求。普通内容可直接用文本或 JSX 渲染。

HTML 安全边界
英文消息变体和源码位置

an innerHTML sink target must be otherwise childless (the sink owns its content) innerHTML sinks require an Object-typed TrustedHtml property innerHTML sinks require the explicit trustedHtml capability marker trustedHtml capability marker must be the literal true trustedHtml capability marker requires an innerHTML sink void element <…> cannot carry an innerHTML sink — move the sink to a container element (e.g. <div>)

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:680 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:906 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:915 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1325 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1332 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1339

OEC9031

编译器语法

含义
服务端函数的标记中包含仅限客户端的处理器或 ref。
检查步骤

让服务端页面负责 HTML,把交互或元素访问移入编译后的 island。

服务端函数页
英文消息变体和源码位置

event handlers are a client-only construct — a server function component renders static HTML and may not carry …; interactivity belongs to an @element island (a compiled component), not to server markup refs are a client-only construct — a server function component renders static HTML and may not carry a ref; element access belongs to an @element island (a compiled component), not to server markup

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:706 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:790 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1036 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1772

OEC9032

编译器语法

含义
服务端函数组件的签名、prop、组合方式或 await 写法超出了当前编译规则。
检查步骤

定位报告指明的表达式,核对内联 props 类型、组件组合方式,以及等待异步子组件的父组件是否也声明为 async。

服务端函数页
英文消息变体和源码位置

"…" is reserved for the generated constructor imports (…) — remove or rename the module-scope binding <…> is an async server function component — a synchronous parent cannot call it, because HTML is built only after the child settles. Mark the parent async. <…> is not a server function component — import it from the module that exports it (a server function component composes only by direct call to another server function component; @element components compose by tag name) a server function component has no this — read the props parameter (props.<field>) instead; `this` belongs to the @element class path a trustedHtml sink cannot cross a __ssr host — pass the trusted value as the component's own property instead await is admitted only inside an async server function component component prop "…" must be a literal or a props.<field> read component prop "…" must be a literal or a props.<field> read — arbitrary expressions are outside the server function grammar component prop names must be plain identifiers promiseSinkRefusal(…) server function component … may not declare type parameters server function component … must have a body server function component … takes at most one props parameter serverAwaitRefusal(…) the props parameter must be a plain identifier the props parameter must be annotated inline as an object type literal (props: { name: string }) — type aliases and interfaces are outside the server function grammar the props type admits property signatures only this exported function renders JSX but is not an admitted server function component (a component is a single return of one JSX element) — runtime JSX has no interpreter in the server lane; fix the shape or move it out of the module … "…" is not a plain identifier — the generated module writes it into an identifier position, so the compiler refuses to emit it … takes at most one props parameter ….children is not declared — add `children?: string` to the props type: the JSX children a caller nests compose it as one final-HTML string

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:481 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:514 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:518 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:524 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:538 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:590 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:820 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1004 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1013 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1030 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1054 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1069 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1075 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1428 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1434 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1440 packages/compiler/src/internal/compiler/semantic-core/lower-program.ts:1861 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:179 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:189 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:220 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:225 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:239 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:248 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:270 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:277 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:303 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:462 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:477 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:771 packages/compiler/src/internal/compiler/semantic-core/server-component.ts:899

OEC9040

编译器语法

含义
编译器无法识别该函数组件的结构。
检查步骤

检查组件导出、props 参数,以及函数体是否返回一个 JSX 元素。

组件 setup
编译器源码位置

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/function-frontend.ts:74

OEC9041

编译器语法

含义
函数组件体内的语句不符合受支持的 setup 语法。
检查步骤

定位报告中的语句,核对它是否符合支持的 setup 声明和单个 JSX 返回规则。

组件 setup
编译器源码位置

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/function-frontend.ts:76

OEC9042

编译器语法

含义
此处的声明、内置调用或 JSX 写法不受支持。
检查步骤

检查报告指明的语法。展开特性可改为逐项绑定;若涉及内置调用,核对参数和调用位置。

编译器语法
编译器源码位置

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/function-frontend.ts:78

OEC9043

编译器语法

含义
编译器无法验证某个读取或表达式。
检查步骤

根据完整消息中的附加代码和文字定位被拒绝的值,检查它的声明位置和读取位置。

编译器语法
编译器源码位置

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/function-frontend.ts:80

OEC9044

编译器语法

含义
函数组件编译器不支持 innerHTML 输出。
检查步骤

普通内容请改用受支持的 JSX 或文本绑定。

HTML 安全边界
编译器源码位置

源码检出中的位置
packages/compiler/src/internal/compiler/semantic-core/function-frontend.ts:82

运行时和框架错误码

根据完整消息和堆栈定位失败的调用。部分源码摘要保留英文,每条均附有中文检查步骤。

OE_PROGRAM_MISSING

英文源码摘要No usable compiled Part Program for the requested class or tag: an uncompiled class, an unregistered tag, or a tag that disagrees with the compiled program's own tag. One code because it is one condition from the caller's side — the class and the program do not describe the same element — and because this value shipped in 1.0.0-alpha.3.

检查步骤

根据堆栈定位元素和操作。对照服务端 HTML 和浏览器加载的模块;若安装、claim 或更新失败,检查两者从何处开始不一致。

Hydration 边界

FacadeErrorCode.PROGRAM_MISSING

在 GitHub 查看源码声明返回错误码查找

OE_RUNTIME_STATIC_RANGE_MISMATCH

英文源码摘要A static sibling-range directory did not match its declaration, was claimed out of order, or was reclaimed after commitment. Detail lives in the message; cases do not each get a code. Not LEAF_CLAIM_UNAVAILABLE.

检查步骤

根据堆栈定位元素和操作。对照服务端 HTML 和浏览器加载的模块;若安装、claim 或更新失败,检查两者从何处开始不一致。

Hydration 边界

RuntimeErrorCode.STATIC_RANGE_MISMATCH

在 GitHub 查看源码声明返回错误码查找

OE_STYLES_INVALID_HREF

英文源码摘要A component stylesheet resource href is not a site-absolute path or an absolute http(s) URL — the one shape rule both stylesheet-link sinks (the document head and a DSD template) enforce.

检查步骤

核对消息指明的样式表、提供方或根节点。顺着该声明检查构建生成、浏览器或服务端尝试使用的样式资源。

样式表交付

StyleErrorCode.INVALID_STYLE_HREF

在 GitHub 查看源码声明返回错误码查找

OE_STYLES_SHEET_RULES_UNREADABLE

英文源码摘要A URL-less (author-owned in-memory, or shim) stylesheet's rules could not be read while serializing server output (phase ssr): the sheet is skipped and reported, and the renderer never invents an external URL for author-owned data. A cross-origin CSSStyleSheet handed to static styles is the reachable cause.

检查步骤

核对消息指明的样式表、提供方或根节点。顺着该声明检查构建生成、浏览器或服务端尝试使用的样式资源。

样式表交付

StyleErrorCode.SHEET_RULES_UNREADABLE

在 GitHub 查看源码声明返回错误码查找

OE_UNSAFE_ATTRIBUTE_NAME

英文源码摘要A server constructor (__h) attribute name is unsafe: it fails the one canonical safe-attribute-name predicate (event handlers and forbidden sinks included). The compiler-generated call sites cannot produce one — the runtime check is the boundary for direct helper misuse.

检查步骤

在数据进入页面渲染器的位置,检查报告指明的 head 字段、标签、参数或数据值。源码声明能帮助确定实际受校验的值。

文档 head 条目

AuthoringErrorCode.UNSAFE_ATTRIBUTE_NAME

在 GitHub 查看源码声明返回错误码查找

OE_UNSAFE_URL_SINK

英文源码摘要A URL-carrying attribute value (href, src, action, formaction, xlink:href) carries a script-bearing scheme, screened by the ONE shared stream-frame URL policy. The value never reaches markup.

检查步骤

在数据进入页面渲染器的位置,检查报告指明的 head 字段、标签、参数或数据值。源码声明能帮助确定实际受校验的值。

文档 head 条目

AuthoringErrorCode.UNSAFE_URL_SINK

在 GitHub 查看源码声明返回错误码查找

OE_ADAPTER_HONO_DEV_SERVER_LOAD_FAILED

英文源码摘要@hono/vite-dev-server resolved but its module threw while loading (a broken install, a failing transitive import, or module evaluation throwing). Distinct from MISSING so a host does not tell the user to install a package that is already present.

检查步骤

打开错误中指明的配置或模块,按实际执行命令的约定核对报告指出的选项和值。

项目配置

AdapterErrorCode.HONO_DEV_SERVER_LOAD_FAILED

在 GitHub 查看源码声明返回错误码查找

OE_CLIENT_BUILD_ELEMENT_RUNTIME_CHUNK_MISSING

英文源码摘要The native generated client entry statically imports the element runtime, yet the emitted client build groups no module under the resolved package root (#1544) — the shared element-runtime chunk never fired and per-island runtime copies would ship silently.

检查步骤

检查首条失败消息指明的路径和文件。在同一个源码检出中用构建和运行命令复现,并检查实际生成的产物。

构建并运行产物

ClientBuildErrorCode.ELEMENT_RUNTIME_CHUNK_MISSING

在 GitHub 查看源码声明返回错误码查找

OE_CLIENT_BUILD_ELEMENT_RUNTIME_IDENTITY_UNRESOLVED

英文源码摘要The client build resolved the element runtime entry, but no ancestor of the resolved module id carries a package.json naming the package (#1544) — the shared runtime chunk would have to group by guessing, so the build fails instead.

检查步骤

检查首条失败消息指明的路径和文件。在同一个源码检出中用构建和运行命令复现,并检查实际生成的产物。

构建并运行产物

ClientBuildErrorCode.ELEMENT_RUNTIME_IDENTITY_UNRESOLVED

在 GitHub 查看源码声明返回错误码查找

OE_CLIENT_BUILD_ENTRY_STATIC_GRAPH_REACHES_RUNTIME

英文源码摘要The emitted client entry statically reaches the shared element-runtime chunk (B2 gap (a)). The entry is the ONE chunk every page loads — island manifest empty or not — so a static edge from it to the runtime makes the runtime floor unavoidable on pages that declared no island, which is exactly the download B2 exists to remove. The usual cause is the bundler homing Vite's injected preload helper inside a lazily-loaded island chunk that the entry then has to import; vite-helper-chunk.ts is the group that prevents it, and this guard is what makes that group's absence fatal instead of a silent regression to the pre-B2 graph.

检查步骤

检查首条失败消息指明的路径和文件。在同一个源码检出中用构建和运行命令复现,并检查实际生成的产物。

构建并运行产物

ClientBuildErrorCode.ENTRY_STATIC_GRAPH_REACHES_RUNTIME

在 GitHub 查看源码声明返回错误码查找

OE_CLIENT_BUILD_PACKAGE_IDENTITY_UNRESOLVED

英文源码摘要A package island's declared specifier has no module id from the client build's identity pass when chunk grouping runs — an internal ordering bug; the build fails instead of grouping chunks on the raw specifier.

检查步骤

检查首条失败消息指明的路径和文件。在同一个源码检出中用构建和运行命令复现,并检查实际生成的产物。

构建并运行产物

ClientBuildErrorCode.PACKAGE_IDENTITY_UNRESOLVED

在 GitHub 查看源码声明返回错误码查找

OE_CLIENT_BUILD_STYLE_ASSET_UNREGISTERED

英文源码摘要A .css style edge resolved in the client or SSR build with no entry in the compiler's style-edge registry, or whose sheet file cannot be read. Either the intercepting plugin answered before the compiled-element transform registered the edge (an internal ordering bug) or the sheet file is missing — both defects; the build fails instead of letting vite's CSS plugin handle the edge (the document-channel path a shadow component's sheet can never use).

检查步骤

检查首条失败消息指明的路径和文件。在同一个源码检出中用构建和运行命令复现,并检查实际生成的产物。

构建并运行产物

ClientBuildErrorCode.STYLE_ASSET_UNREGISTERED

在 GitHub 查看源码声明返回错误码查找

OE_CLIENT_BUILD_VITE_HELPER_CHUNK_MISSING

英文源码摘要The emitted client graph carries Vite's injected preload helper modules, but they are not homed in the single vite-helper chunk (vite-helper-chunk.ts). Anywhere else — typically inside a lazily-loaded island chunk — is the chunk layout that gives the entry a static edge to that island (and through it to the runtime), so it fails rather than shipping.

检查步骤

检查首条失败消息指明的路径和文件。在同一个源码检出中用构建和运行命令复现,并检查实际生成的产物。

构建并运行产物

ClientBuildErrorCode.VITE_HELPER_CHUNK_MISSING

在 GitHub 查看源码声明返回错误码查找

OE_DESCRIPTOR_MODULE_IMPORT

英文源码摘要A route/renderer/middleware module path the generated entry cannot embed: not a string, empty, or carrying control characters. The entry quotes every specifier, so this gate only refuses values a module graph cannot carry (a hand-built descriptor or a filename the scanner should have rejected) — never a merely unusual-but-printable path.

检查步骤

打开错误中指明的配置或模块,按实际执行命令的约定核对报告指出的选项和值。

项目配置

DescriptorErrorCode.MODULE_IMPORT

在 GitHub 查看源码声明返回错误码查找

OE_ISLAND_STYLE_LANE_UNSUPPORTED

英文源码摘要styles was declared on a module that is not a light-root generated island: the class lane owns static styles and an island that is not compiled by the generated-element lane has no channel here.

检查步骤

定位报告指明的 island、标签或包。核对它的声明和导入路径,再检查构建实际准入并生成了哪些入口。

Island 声明

IslandErrorCode.STYLE_LANE_UNSUPPORTED

在 GitHub 查看源码声明返回错误码查找

OE_ISLAND_STYLE_SHADOW_UNWIRED

英文源码摘要styles was declared on a SHADOW-root generated island that has no compiled DSD host producer AND is not client-only. A server-rendered shadow island needs the producer's template to declare the sheet in; a client-only island (ssr: false / hydrate: 'only') is admitted instead, because the compiler emits the module-graph import the shell adopts (2026-11-20). The code name is historical: the DSD link carrier itself landed in M09-2e.

检查步骤

定位报告指明的 island、标签或包。核对它的声明和导入路径,再检查构建实际准入并生成了哪些入口。

Island 声明

IslandErrorCode.STYLE_SHADOW_UNWIRED

在 GitHub 查看源码声明返回错误码查找

OE_ISLAND_TAGS

英文源码摘要tags/tagNames are malformed or contradict each other, or a declared tag contradicts the tag the island's own path derives.

检查步骤

定位报告指明的 island、标签或包。核对它的声明和导入路径,再检查构建实际准入并生成了哪些入口。

Island 声明

IslandErrorCode.TAGS

在 GitHub 查看源码声明返回错误码查找

OE_PACKAGE_ADMISSION_MANIFEST_LESS

英文源码摘要A package-owned element module the app imports has no valid OpenElement manifest, so it can never deliver (the one true mistake class the unadmitted-package report keeps under auto). Fix the package (ship a manifest export through its ./manifest subpath) or stop expecting component delivery from it.

检查步骤

定位报告指明的 island、标签或包。核对它的声明和导入路径,再检查构建实际准入并生成了哪些入口。

Island 声明

PackageAdmissionErrorCode.MANIFEST_LESS

在 GitHub 查看源码声明返回错误码查找

OE_PACKAGE_ADMISSION_MODULE_BOUND_EXCEEDED

英文源码摘要The derivation's evidence walk stopped at its module bound, so some imported component packages may not be derived. Non-fatal, reported, and graph-level (no single file owns it): the admitted set stays derivable from what the walk did reach. Declare the packages explicitly in packageIslands when certainty matters more than the bound.

检查步骤

定位报告指明的 island、标签或包。核对它的声明和导入路径,再检查构建实际准入并生成了哪些入口。

Island 声明

PackageAdmissionErrorCode.MODULE_BOUND_EXCEEDED

在 GitHub 查看源码声明返回错误码查找

OE_PACKAGE_ADMISSION_MODULE_UNREADABLE

英文源码摘要A module the derivation walked could not be read or analyzed (unreadable source, or a semantic-analysis refusal), so it is excluded from the derivation's evidence. Non-fatal, reported: the admitted set stays derivable, and the exclusion is never silent.

检查步骤

定位报告指明的 island、标签或包。核对它的声明和导入路径,再检查构建实际准入并生成了哪些入口。

Island 声明

PackageAdmissionErrorCode.MODULE_UNREADABLE

在 GitHub 查看源码声明返回错误码查找

OE_PACKAGE_ADMISSION_TAG_CONFLICT

英文源码摘要Two packages claim the same delivered tag and the derivation cannot pick an owner (neither claimant is explicitly declared). Declare the intended owner in packageIslands — an explicit entry outranks a derived claim.

检查步骤

定位报告指明的 island、标签或包。核对它的声明和导入路径,再检查构建实际准入并生成了哪些入口。

Island 声明

PackageAdmissionErrorCode.TAG_CONFLICT

在 GitHub 查看源码声明返回错误码查找

OE_PAGE_FUNCTION_PROPS

英文源码摘要The server function page props carried the reserved children key. The compiled props.children channel is trusted final HTML produced by the COMPILER from the caller's own JSX children; page props come from loader data, so a children key there is an injection attempt and is refused before the render function runs.

检查步骤

按消息中指明的路由、标签或文件定位源码模块,检查文件名、组件入口和报错所涉及的路由选项。

文件路由

PageErrorCode.FUNCTION_PROPS

在 GitHub 查看源码声明返回错误码查找

OE_PAGE_FUNCTION_RENDER

英文源码摘要The server function page render seam received a page whose render is not a function (a malformed descriptor, or a route module whose default export never went through definePage's function branch).

检查步骤

按消息中指明的路由、标签或文件定位源码模块,检查文件名、组件入口和报错所涉及的路由选项。

文件路由

PageErrorCode.FUNCTION_RENDER

在 GitHub 查看源码声明返回错误码查找

OE_PRESET_TAILWIND_REQUIRED_DISABLED

英文源码摘要The application disabled the entry (tailwind: false) while an admitted component declaration requires the compile. Fails closed: the alternative is a component that ships without its presentation.

检查步骤

核对消息指明的样式表、提供方或根节点。顺着该声明检查构建生成、浏览器或服务端尝试使用的样式资源。

样式表交付

PresetErrorCode.TAILWIND_REQUIRED_DISABLED

在 GitHub 查看源码声明返回错误码查找

OE_PRESET_UNOCSS_EMPTY_COMPILE

英文源码摘要The UnoCSS compile produced no CSS for a sheet that cannot be empty: the provider is enabled and candidates were admitted, so an empty result is a defect of the adapter, never a silently unstyled document.

检查步骤

核对消息指明的样式表、提供方或根节点。顺着该声明检查构建生成、浏览器或服务端尝试使用的样式资源。

样式表交付

PresetErrorCode.UNOCSS_EMPTY_COMPILE

在 GitHub 查看源码声明返回错误码查找

OE_SCAN_ROUTE_TAG_NAME_MISSING

英文源码摘要A page route module carries no tagName export. An advisory, not a defect: not every page route defines one (definePage pages resolve their tag from the compiled Part Program).

检查步骤

定位报告指明的 island、标签或包。核对它的声明和导入路径,再检查构建实际准入并生成了哪些入口。

Island 声明

ScanSurfaceErrorCode.ROUTE_TAG_NAME_MISSING

在 GitHub 查看源码声明返回错误码查找

OE_SSG_CSP_META_UNSUPPORTED

英文源码摘要A CSP policy was asked to ride a <meta http-equiv> in a shape that element cannot carry: the report-only variant (which has no http-equiv pragma at all) or a directive the meta delivery ignores. The static delivery cannot honour it, so the build says which directives and which delivery does instead of shipping a policy that is silently not enforced.

检查步骤

检查首条失败消息指明的路径和文件。在同一个源码检出中用构建和运行命令复现,并检查实际生成的产物。

构建并运行产物

SsgRenderErrorCode.CSP_META_UNSUPPORTED

在 GitHub 查看源码声明返回错误码查找