{"record":{"id":"c9a55fdcc0a8505f","repo":"DioxusLabs/dioxus","slug":"package-type-invalid-is-not-supported-for-bu","errorCode":null,"errorMessage":"Package type '{invalid:?}' is not supported for bundle format '{bundle}'.","messagePattern":"Package type '(.+?)' is not supported for bundle format '(.+?)'\\.","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/cli/bundle.rs","lineNumber":257,"sourceCode":"                        | PackageType::AppImage\n                        | PackageType::Updater\n                ),\n                BundleFormat::Windows => {\n                    matches!(\n                        package_type,\n                        PackageType::WindowsMsi | PackageType::Nsis | PackageType::Updater\n                    )\n                }\n                BundleFormat::Android => {\n                    matches!(package_type, PackageType::Apk | PackageType::Aab)\n                }\n                BundleFormat::Ios => matches!(package_type, PackageType::IosApp | PackageType::Ipa),\n                BundleFormat::Web | BundleFormat::Server => false,\n            }\n        };\n\n        if let Some(invalid) = package_types.iter().find(|pt| !is_package_supported(pt)) {\n            anyhow::bail!(\n                \"Package type '{invalid:?}' is not supported for bundle format '{bundle}'.\"\n            );\n        }\n\n        Ok(())\n    }\n}\n\n#[cfg(test)]\nmod tests {\n    use super::Bundle;\n    use crate::{\n        BuildArgs, BundleFormat, PackageType, Platform, cli::CommandWithPlatformOverrides,\n    };\n\n    #[test]\n    fn bundle_formats_have_default_package_types() {\n        assert_eq!(","sourceCodeStart":239,"sourceCodeEnd":275,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/cli/bundle.rs#L239-L275","documentation":"Compatibility guard in validate_package_types_for_bundle: the match arms map each BundleFormat (Windows, Android, iOS, etc.) to the set of PackageTypes it supports, and the requested package type does not appear in the set for the selected bundle format. The inputs at fault are the user-requested package type and bundle format combination, which is not a supported pairing.","triggerScenarios":"Thrown at packages/cli/src/cli/bundle.rs:257 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Choose a package type that the selected bundle format supports."],"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"}