filamentphp/filament · error · LogicException

Please use the `viteTheme()` method on the panel configurati

Error message

Please use the `viteTheme()` method on the panel configuration to register themes.

What it means

Error "Please use the `viteTheme()` method on the panel configuration to register themes." thrown in filamentphp/filament.

Source

Thrown at packages/panels/src/FilamentManager.php:1088

    {
        try {
            $this->getDefaultPanel()->theme($theme);
        } catch (NoDefaultPanelSetException $exception) {
            throw new LogicException('Please use the `theme()` method on the panel configuration to register themes.');
        }
    }

    /**
     * @param  string | array<string>  $theme
     *
     * @deprecated Use the `viteTheme()` method on the panel configuration instead.
     */
    public function registerViteTheme(string | array $theme, ?string $buildDirectory = null): void
    {
        try {
            $this->getDefaultPanel()->viteTheme($theme, $buildDirectory);
        } catch (NoDefaultPanelSetException $exception) {
            throw new LogicException('Please use the `viteTheme()` method on the panel configuration to register themes.');
        }
    }

    /**
     * @param  array<MenuItem>  $items
     *
     * @deprecated Use the `userMenuItems()` method on the panel configuration instead.
     */
    public function registerUserMenuItems(array $items): void
    {
        try {
            $this->getDefaultPanel()->userMenuItems($items);
        } catch (NoDefaultPanelSetException $exception) {
            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');
        }
    }

    /**

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/panels/src/FilamentManager.php:1088 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of filamentphp/filament@53483fa934 (2026-08-17). Data as JSON: /api/errors/dec128f35ee23aa0. Report an issue: GitHub.