swc-project/swc · error
flow type cast
Error message
flow type cast
What it means
Error "flow type cast" thrown in swc-project/swc.
Source
Thrown at crates/swc_estree_compat/src/swcify/expr.rs:842
OptChainExpr {
span: ctx.span(&self.base),
optional: self.optional,
base: Box::new(OptChainBase::Call(OptCall {
span: ctx.span(&self.base),
callee: self.callee.swcify(ctx),
args: self.arguments.swcify(ctx).into_iter().flatten().collect(),
type_args: self.type_parameters.swcify(ctx).map(From::from),
..Default::default()
})),
}
}
}
impl Swcify for TypeCastExpression {
type Output = Never;
fn swcify(self, _: &Context) -> Self::Output {
unimplemented!("flow type cast")
}
}
impl Swcify for swc_estree_ast::JSXElement {
type Output = swc_ecma_ast::JSXElement;
fn swcify(self, ctx: &Context) -> Self::Output {
swc_ecma_ast::JSXElement {
span: ctx.span(&self.base),
opening: self.opening_element.swcify(ctx),
children: self.children.swcify(ctx),
closing: self.closing_element.swcify(ctx),
}
}
}
impl Swcify for swc_estree_ast::JSXOpeningElement {
type Output = swc_ecma_ast::JSXOpeningElement;View on GitHub (pinned to d7d7434666)
When it happens
Trigger: Thrown at crates/swc_estree_compat/src/swcify/expr.rs:842 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of swc-project/swc@d7d7434666 (2026-08-16).
Data as JSON: /api/errors/58e8fdce493d6534.
Report an issue: GitHub.