FilamentF
Filament3y ago
Veur

Custom theme: Unable to locate file in Vite manifest

I created a custom theme according to: https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme

Then I registered it in the Panel provider:
->viteTheme('resources/css/filament/client/theme.css')

This is my vite.config.js:
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';

export default defineConfig({
    plugins: [
        laravel({
            input: [
                'resources/css/app.css',
                'resources/css/client.css',
                'resources/js/app.js',
            ],
            refresh: true,
        }),
    ],
    input: [
        'resources/css/filament/client/theme.css',
    ],
});


And I ran
npm run build


But in production it still gives this error (locally it works fine):
Unable to locate file in Vite manifest: resources/css/filament/client/theme.css
Solution
This input array
image.png
Was this page helpful?