swc-project/swc · error
module string names unimplemented
Error message
module string names unimplemented
What it means
Error "module string names unimplemented" thrown in swc-project/swc.
Source
Thrown at crates/swc_estree_compat/src/babelify/module_decl.rs:374
base: ctx.base(self.span),
local: self.orig.clone().babelify(ctx),
exported: self.exported.unwrap_or(self.orig).babelify(ctx),
export_kind: if self.is_type_only {
ExportKind::Type
} else {
ExportKind::Value
},
}
}
}
impl Babelify for ModuleExportName {
type Output = ModuleExportNameType;
fn babelify(self, ctx: &Context) -> Self::Output {
match self {
ModuleExportName::Ident(ident) => ModuleExportNameType::Ident(ident.babelify(ctx)),
ModuleExportName::Str(..) => unimplemented!("module string names unimplemented"),
#[cfg(swc_ast_unknown)]
_ => panic!("unable to access unknown nodes"),
}
}
}
View on GitHub (pinned to d7d7434666)
When it happens
Trigger: Thrown at crates/swc_estree_compat/src/babelify/module_decl.rs:374 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/dfdb57d865e6123e.
Report an issue: GitHub.