{"record":{"id":"91fd415e76906361","repo":"DioxusLabs/dioxus","slug":"no-platform-feature-enabled-please-enable-one-of","errorCode":null,"errorMessage":"No platform feature enabled. Please enable one of the following features: liveview, desktop, mobile, web, tui, fullstack to use the launch API.","messagePattern":"No platform feature enabled\\. Please enable one of the following features: liveview, desktop, mobile, web, tui, fullstack to use the launch API\\.","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/dioxus/src/launch.rs","lineNumber":115,"sourceCode":"        deprecated(\n            note = \"No renderer is enabled. You must enable a renderer feature on the dioxus crate before calling the launch function.\\nAdd `web`, `desktop`, `mobile`, or `fullstack` to the `features` of dioxus field in your Cargo.toml.\\n# Example\\n```toml\\n# ...\\n[dependencies]\\ndioxus = { version = \\\"0.5.0\\\", features = [\\\"web\\\"] }\\n# ...\\n```\"\n        )\n    )]\n    pub fn new() -> LaunchBuilder {\n        let platform = if cfg!(feature = \"native\") {\n            KnownPlatform::Native\n        } else if cfg!(feature = \"desktop\") {\n            KnownPlatform::Desktop\n        } else if cfg!(feature = \"mobile\") {\n            KnownPlatform::Mobile\n        } else if cfg!(feature = \"web\") {\n            KnownPlatform::Web\n        } else if cfg!(feature = \"server\") {\n            KnownPlatform::Server\n        } else if cfg!(feature = \"liveview\") {\n            KnownPlatform::Liveview\n        } else {\n            panic!(\n                \"No platform feature enabled. Please enable one of the following features: liveview, desktop, mobile, web, tui, fullstack to use the launch API.\"\n            )\n        };\n\n        LaunchBuilder {\n            platform,\n            contexts: Vec::new(),\n            configs: Vec::new(),\n        }\n    }\n\n    /// Launch your web application.\n    #[cfg(feature = \"web\")]\n    #[cfg_attr(docsrs, doc(cfg(feature = \"web\")))]\n    pub fn web() -> LaunchBuilder {\n        LaunchBuilder {\n            platform: KnownPlatform::Web,\n            contexts: Vec::new(),","sourceCodeStart":97,"sourceCodeEnd":133,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/dioxus/src/launch.rs#L97-L133","documentation":"The launch API was called but no renderer feature (web, desktop, mobile, liveview, tui, fullstack, native) is enabled on the dioxus crate, so there is no backend to launch. The builder's platform detection fell through every cfg! check.","triggerScenarios":"Thrown at packages/dioxus/src/launch.rs:115 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable one renderer feature on the dioxus dependency: liveview, desktop, mobile, web, tui, or fullstack."],"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-14T05:17:10.506Z"}