{"record":{"id":"dec128f35ee23aa0","repo":"filamentphp/filament","slug":"please-use-the-vitetheme-method-on-the-panel-c","errorCode":null,"errorMessage":"Please use the `viteTheme()` method on the panel configuration to register themes.","messagePattern":"Please use the `viteTheme\\(\\)` method on the panel configuration to register themes\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/FilamentManager.php","lineNumber":1088,"sourceCode":"    {\n        try {\n            $this->getDefaultPanel()->theme($theme);\n        } catch (NoDefaultPanelSetException $exception) {\n            throw new LogicException('Please use the `theme()` method on the panel configuration to register themes.');\n        }\n    }\n\n    /**\n     * @param  string | array<string>  $theme\n     *\n     * @deprecated Use the `viteTheme()` method on the panel configuration instead.\n     */\n    public function registerViteTheme(string | array $theme, ?string $buildDirectory = null): void\n    {\n        try {\n            $this->getDefaultPanel()->viteTheme($theme, $buildDirectory);\n        } catch (NoDefaultPanelSetException $exception) {\n            throw new LogicException('Please use the `viteTheme()` method on the panel configuration to register themes.');\n        }\n    }\n\n    /**\n     * @param  array<MenuItem>  $items\n     *\n     * @deprecated Use the `userMenuItems()` method on the panel configuration instead.\n     */\n    public function registerUserMenuItems(array $items): void\n    {\n        try {\n            $this->getDefaultPanel()->userMenuItems($items);\n        } catch (NoDefaultPanelSetException $exception) {\n            throw new LogicException('Please use the `userMenuItems()` method on the panel configuration to register user menu items. See the documentation - https://filamentphp.com/docs/panels/navigation#customizing-the-user-menu');\n        }\n    }\n\n    /**","sourceCodeStart":1070,"sourceCodeEnd":1106,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/FilamentManager.php#L1070-L1106","documentation":"Error \"Please use the `viteTheme()` method on the panel configuration to register themes.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/FilamentManager.php:1088 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}