Vite error
Vite manifest not found at: /Users/feat/Sites/autotartosberlet/public/build/manifest.json
So I am trying to use the custom theme, and after i write the ->viteTheme(public_path('css/filament/admin/theme.css'))
line to the FilamentServiceprovider, I got the error above. Any ideas?
11 Replies
did you run
npm run dev
?I got this error:
npm ERR! To see a list of scripts, run:
npm ERR! npm run
Remove the public_path() from viteTheme
Could not resolve entry module "index.html".
Ok. Something is off in your setup if it’s looking for index.html
Yeah. When i run the make:filament -theme command, I didnt' get the regular warning. I just got this:
Action is required to complete the theme setup:
⇂ It looks like you don't have Vite installed. Please use your asset bundling system of choice to compile
⇂ It looks like you don't have Vite installed. Please use your asset bundling system of choice to compile
resources/css/filament/admin/theme.css
into public/css/filament/admin/theme.css
also its creating a package.json, but it looks kinda "empty"?
{
"devDependencies": {
"@tailwindcss/forms": "^0.5.8",
"@tailwindcss/typography": "^0.5.15",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.41",
"postcss-nesting": "^13.0.0",
"tailwindcss": "^3.4.10"
}
}
IDK how should I make this custom theme work, but I really need it for a plugin.What does your vite.config.js look like? And your theme.css
Did you run
I have only : tailwind.config.js'
and the theme.css :
@import '/vendor/filament/filament/resources/css/theme.css';
@config 'tailwind.config.js';
So you don’t have a Vite config?
It literally says, that you either need Vite or an "asset bundling system of choice to compile"