Using a filament theme without frontend-scaffolding
Hello, I am working on an api only laravel app, for the api I am using filament manage my api. Altough did notice issues when installing a custom theme (specificaly this one https://github.com/Fa-BRAIK/dash-stack-theme). I am getting the error: "Vite manifest not found at: E:\Development\Api\public\build/manifest.json
" I do have vite installed on the project, but I am not using any frontend scafholding, so I can't build the vite application to get rid of the error, what should I do? (Not sure if this would be the right place to ask?)
Solution:Jump to solution
I guess you need to create a Vite config file that references
vendor/nuxtifyts/dash-stack-theme/resources/css/theme.css
and compiles that8 Replies
And npm build also won't work because there is no frontend.. It also seems to be an issue when trying to get the theme using viteTheme in the provider

It seems like the installation instructions are missing something.
Not sure how this should work without running Vite which creates the manifest
The plugin seems to expect that you have a
npm run build
but there is no step that adds anything to ViteSolution
I guess you need to create a Vite config file that references
vendor/nuxtifyts/dash-stack-theme/resources/css/theme.css
and compiles thatBetter question is why are your api routes trying to render a blade layout.
They are using Filament for admin => Blade.
But is the error in the api endpoints or the crud / viewing?
Ie, is the error happening at /api/posts or /admin/posts?
In worst case both π
But hopefully only for the admin sites. Would make sense, as it's from the Filament theme.
I got it to work, just adding a vite config with only the theme seemed to work, thanks π