{"record":{"id":"82a1e7a631089833","repo":"DioxusLabs/dioxus","slug":"could-not-find-export","errorCode":null,"errorMessage":"Could not find export","messagePattern":"Could not find export","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/wasm-split/wasm-split-cli/src/lib.rs","lineNumber":1412,"sourceCode":"                return None;\n            }\n\n            let ImportKind::Function(import_func) = import.kind else {\n                return None;\n            };\n\n            // Parse the import name to get the module name, the hash, and the function name\n            let remain = import.name.trim_start_matches(\"__wasm_split_00___\");\n            let (module_name, rest) = remain.split_once(\"___00\").unwrap();\n            let (hash, fn_name) = rest.trim_start_matches(\"_import_\").split_once(\"_\").unwrap();\n\n            // Look for the export with the same name\n            let export_name =\n                format!(\"__wasm_split_00___{module_name}___00_export_{hash}_{fn_name}\");\n            let export_func = module\n                .exports\n                .get_func(&export_name)\n                .expect(\"Could not find export\");\n            let export = module.exports.get_exported_func(export_func).unwrap();\n\n            let our_index = index;\n            index += 1;\n\n            Some(SplitPoint {\n                export_id: export.id(),\n                import_id: import.id(),\n                module_name: module_name.to_string(),\n                import_name: import.name.clone(),\n                import_func,\n                export_func,\n                export_name,\n                hash_name: hash.to_string(),\n                component_name: fn_name.to_string(),\n                index: our_index,\n                reachable_graph: Default::default(),\n            })","sourceCodeStart":1394,"sourceCodeEnd":1430,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/wasm-split/wasm-split-cli/src/lib.rs#L1394-L1430","documentation":"`accumulate_split_points` parses wasm-split import names and, after splitting out the module hash and function name, `expect`s to find the matching export in the target module. This panic fires when an import references an export that doesn't exist — indicating a mismatch between the split modules (stale or mismatched wasm inputs), not user code.","triggerScenarios":"Thrown at packages/wasm-split/wasm-split-cli/src/lib.rs:1412 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the export name passed to wasm-split exists in the module; a typo or a symbol removed during compilation will cause this."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}