generatedextracted from the source that raises it
E_CHILDREN_NOT_SOLE_CHILD
A named refusal, raised in one place in compiler. What it refused, the sentence it prints, and the argument for it.
The message as the source writes it, with interpolations shown as an ellipsis. It is a reconstruction of the template, not a capture of a runtime string.
- Specified in
spec/compiler/supported-subset.md- Introduced by
- Fragments and templates·One fragment inside another
| File | Line |
|---|---|
packages/compiler/src/lower.ts | 977 |
Raised in the same package, or specified in the same document. A refusal rarely stands on its own — the ones beside it are usually the same rule seen from another angle:
| Code | What it says | Raised in |
|---|---|---|
E_ATTRIBUTE_UNSUPPORTED | prop … of <…> has an unsupported value | compiler |
E_BRANCH_MIXES_SHAPE_AND_VALUE | every arm of this conditional has to be markup, because the arms are sealed as templates and a value arm has no template to be. Wrap the value in an element, or make the whole conditional a value | compiler |
E_BRANCH_NOT_SOLE_CHILD | every arm of this conditional has to be markup, because the arms are sealed as templates and a value arm has no template to be. Wrap the value in an element, or make the whole conditional a value | compiler |
E_BRANCH_ON_SIGNAL | this branch is decided by signal …, and a branch is chosen by the server — nothing on the client swaps one sealed subtree for another, so it would render once and never change. Use a conditional value, which is reactive, or choose in a loader | compiler |
E_CHILDREN_AS_PROP | children is markup rather than a value; write it between <…> and </…> | compiler |