{"record":{"id":"01ad3e9d83f3b70b","repo":"swc-project/swc","slug":"module-string-names-unimplemented-01ad3e","errorCode":null,"errorMessage":"module string names unimplemented","messagePattern":"module string names unimplemented","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/swc_bundler/src/bundler/chunk/computed_key.rs","lineNumber":74,"sourceCode":"                // Handle `export *`-s from dependency modules.\n                //\n                // See: https://github.com/denoland/deno/issues/9200\n                ModuleItem::ModuleDecl(ModuleDecl::ExportNamed(NamedExport {\n                    ref specifiers,\n                    with: Some(with),\n                    ..\n                })) if is_injected(with) => {\n                    for s in specifiers {\n                        if let ExportSpecifier::Named(ExportNamedSpecifier {\n                            orig,\n                            exported: Some(exported),\n                            ..\n                        }) = s\n                        {\n                            let exported = match exported {\n                                ModuleExportName::Ident(ident) => ident,\n                                ModuleExportName::Str(..) => {\n                                    unimplemented!(\"module string names unimplemented\")\n                                }\n                                #[cfg(swc_ast_unknown)]\n                                _ => panic!(\"unable to access unknown nodes\"),\n                            };\n                            if ctx.transitive_remap.get(&exported.ctxt).is_some() {\n                                let specifier = ExportSpecifier::Named(ExportNamedSpecifier {\n                                    span: DUMMY_SP,\n                                    orig: orig.clone(),\n                                    exported: Some(ModuleExportName::Ident(exported.clone())),\n                                    is_type_only: false,\n                                });\n                                additional_items.push((\n                                    module_id,\n                                    NamedExport {\n                                        span: DUMMY_SP,\n                                        specifiers: vec![specifier],\n                                        src: None,\n                                        type_only: false,","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/swc-project/swc/blob/5176682b65416c6b5de6b47379ae1588ea3ecb3f/crates/swc_bundler/src/bundler/chunk/computed_key.rs#L56-L92","documentation":"An unimplemented!() in wrap_esm of the bundler's computed-key pass (computed_key.rs:74). While handling injected `export *` re-exports from dependency modules (the deno#9200 workaround path), a specifier whose original name is a string literal (ModuleExportName::Str) instead of an identifier reaches a case with no implementation, so the pass aborts. The string-named export specifier in the injected export list is the input at fault.","triggerScenarios":"Thrown at crates/swc_bundler/src/bundler/chunk/computed_key.rs:74 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Implement ModuleExportName::Str handling for injected re-exports in the ESM wrap pass","Avoid string export names in code destined for the bundler","Skip (with a warning) string-named re-exports that cannot be represented instead of aborting the bundle"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5176682b65416c6b5de6b47379ae1588ea3ecb3f","analyzedAt":"2026-08-17T16:16:52.067Z","contentChangedAt":"2026-08-17T16:16:52.067Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}