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_bundler/src/bundler/chunk/merge.rs:266
let ids: Vec<Id> = find_pat_ids(decl);
declared_ids.extend(ids);
}
}
}
for (module_id, stmt) in entry.iter() {
match stmt {
ModuleItem::ModuleDecl(ModuleDecl::ExportNamed(export)) => {
for s in &export.specifiers {
match s {
ExportSpecifier::Namespace(_) => {}
ExportSpecifier::Default(_) => {}
ExportSpecifier::Named(named) => {
if let Some(exported) = &named.exported {
let exported = match exported {
ModuleExportName::Ident(ident) => ident,
ModuleExportName::Str(..) => {
unimplemented!("module string names unimplemented")
}
#[cfg(swc_ast_unknown)]
_ => panic!("unable to access unknown nodes"),
};
let id: Id = exported.into();
if declared_ids.contains(&id) {
continue;
}
match &named.orig {
ModuleExportName::Ident(orig) => {
vars.push((
module_id,
orig.clone()
.assign_to(exported.clone())
.into_module_item(
injected_ctxt,View on GitHub (pinned to d7d7434666)
When it happens
Trigger: Thrown at crates/swc_bundler/src/bundler/chunk/merge.rs:266 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/cb83338b680ce94d.
Report an issue: GitHub.