F
Filament2mo ago
Sector

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
LeandroFerreira
LeandroFerreira2mo ago
did you run npm run dev ?
Sector
Sector2mo ago
I got this error: npm ERR! To see a list of scripts, run: npm ERR! npm run
awcodes
awcodes2mo ago
Remove the public_path() from viteTheme
Sector
Sector2mo ago
Could not resolve entry module "index.html".
awcodes
awcodes2mo ago
Ok. Something is off in your setup if it’s looking for index.html
Sector
Sector2mo ago
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 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.
awcodes
awcodes2mo ago
What does your vite.config.js look like? And your theme.css
Wannes
Wannes2mo ago
Did you run
npm install
npm run build
npm install
npm run build
Sector
Sector2mo ago
I have only : tailwind.config.js' and the theme.css : @import '/vendor/filament/filament/resources/css/theme.css'; @config 'tailwind.config.js';
awcodes
awcodes2mo ago
So you don’t have a Vite config?
Dennis Koch
Dennis Koch2mo ago
It literally says, that you either need Vite or an "asset bundling system of choice to compile"
Want results from more Discord servers?
Add your server