F
Filamentβ€’2mo ago
LuukOriginal

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:
I guess you need to create a Vite config file that references vendor/nuxtifyts/dash-stack-theme/resources/css/theme.css and compiles that
Jump to solution
8 Replies
LuukOriginal
LuukOriginalOPβ€’2mo ago
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
No description
Dennis Koch
Dennis Kochβ€’2mo ago
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 Vite
Solution
Dennis Koch
Dennis Kochβ€’2mo ago
I guess you need to create a Vite config file that references vendor/nuxtifyts/dash-stack-theme/resources/css/theme.css and compiles that
awcodes
awcodesβ€’2mo ago
Better question is why are your api routes trying to render a blade layout.
Dennis Koch
Dennis Kochβ€’2mo ago
They are using Filament for admin => Blade.
awcodes
awcodesβ€’2mo ago
But is the error in the api endpoints or the crud / viewing? Ie, is the error happening at /api/posts or /admin/posts?
Dennis Koch
Dennis Kochβ€’2mo ago
In worst case both πŸ˜… But hopefully only for the admin sites. Would make sense, as it's from the Filament theme.
LuukOriginal
LuukOriginalOPβ€’2mo ago
I got it to work, just adding a vite config with only the theme seemed to work, thanks πŸ‘

Did you find this page helpful?