Why do I get Unable to locate file in Vite manifest: resources/css/filament/manage/theme.css ?
I get an error
Unable to locate file in Vite manifest: resources/css/filament/manage/theme.css.
Even though my file path is correct.
vite.config.js

39 Replies
This is what my PanelProvider looks like
->viteTheme('resources/css/filament/manage/theme.css');
at the end of the code
Is that because I use scss files instead of css?Your vite config is looking for ‘resources/css/filament/admin/theme.css’ not ‘resources/css/filament/manage/theme.css’
Just need to get all your paths in check.
Oh no!
Thanks for the fix, this is how it looks after doing that.
What happened???

IT should look like better than this 😦

What’s off about the second screen shot.
For the 2nd screenshot. The new tailwind classes should be called here because I added tailwind classes
Make sure the files that have those classes are included in the tailwind config
Could be wrong, but looks to me like you’re using the tw prose class which has a max width, so it also needs a max-w-none class on the prose element.
If thats what you’re talking about.
Acutally no, ill display a better sample
This text should become red, but its still gray


Where are you adding the red class?
Do you have a custom color in your tailwind config for “text-red” because that’s not a default class in tailwind. Try “text-red-500”
changed it to that and rerun npm run dev, and (npm run build causes error)
And what is the error?
Is it because this was removed?
->viteTheme('resources/css/filament/manage/theme.css');
Well, you still need that.
Yeah, removed it because it breaks whenever I add that line of code
Output looks like this

The default filament theme doesn’t have those classes. That’s the whole point of a custom theme. It builds against your code base and replaces the default filament theme.
Yes understood
That’s just how tw works.
so i need to install tailwind ?
after doing the custom theme command for filament
Its already installed.
ran npm dev

Is this a repo you can share?
unfortunately its a private repo, not allowed :/
Hey but I found this one
https://github.com/QwikDev/qwik/issues/836#issuecomment-2665044734
The error is unique
Cant find any result from the search engine
Well, it’s hard to help without seeing exactly what you are doing, but it seems like you just have some setup out of place, but hard to help without seeing the code as a whole.
I understand, sorry I think I might just have to search from different forums but thanks for helping me
I promise it all works if it’s setup correctly.
Hey just wondering why is it causing postcss error?
I havent installed postcss
Nvm postcss is in the package, I just dont understand the error
Understood, but thats where it’s difficult to help without seeing all the files involved.
HI gont some hint, I got a new error after removing the tailwind/


I directly edited at the vendor file
Is this code looking for an npm package tailwind?
index.css at
vendor/filament/filament/resources/css/index.css
Is this the case?
Because I see no tailwind in my node_modules.

Why are you modifying vendor files? Stop now.
Trying to debug things
Finding out why its causing this error and fixing it
You should never touch vendor files.
The problem isn’t in the vendor. It’s in the setup in your app.