emberjs/ember.js · error · SyntaxError
Illegal use of ...attributes
Error message
Illegal use of ...attributes
What it means
Error "Illegal use of ...attributes" thrown in emberjs/ember.js.
Source
Thrown at packages/@glimmer/syntax/lib/parser/handlebars-node-visitors.ts:232
appendChild(parentProgram, node);
}
MustacheStatement(rawMustache: HBS.MustacheStatement): ASTv1.MustacheStatement | void {
this.pendingError?.mustache(this.source.spanFor(rawMustache.loc));
const { tokenizer } = this;
if (tokenizer.state === 'comment') {
this.appendToCommentData(this.sourceForNode(rawMustache));
return;
}
let mustache: ASTv1.MustacheStatement;
const { escaped, loc, strip } = rawMustache;
if ('original' in rawMustache.path && rawMustache.path.original === '...attributes') {
throw generateSyntaxError(
'Illegal use of ...attributes',
this.source.spanFor(rawMustache.loc)
);
}
if (isHBSLiteral(rawMustache.path)) {
mustache = b.mustache({
path: this.acceptNode<(typeof rawMustache.path)['type']>(rawMustache.path),
params: [],
hash: b.hash({ pairs: [], loc: this.source.spanFor(rawMustache.path.loc).collapse('end') }),
trusting: !escaped,
loc: this.source.spanFor(loc),
strip,
});
} else {
const { path, params, hash } = acceptCallNodes(this, rawMustache);
mustache = b.mustache({
path,View on GitHub (pinned to 26f97246a8)
When it happens
Trigger: Thrown at packages/@glimmer/syntax/lib/parser/handlebars-node-visitors.ts:232 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of emberjs/ember.js@26f97246a8 (2026-09-01).
Data as JSON: /api/errors/73bfedb4c7fcf5a9.
Report an issue: GitHub.