© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
orrison

Issue with deployments after adding viteTheme() to Panel

It seems that adding
viteTheme()
viteTheme()
to the Panel throws an error during fresh CI/CD deployment.

  0/193 [>---------------------------]   0%
  30/193 [====>-----------------------]  15%
  50/193 [=======>--------------------]  25%
  70/193 [==========>-----------------]  36%
  90/193 [=============>--------------]  46%
 100/193 [==============>-------------]  51%
 110/193 [===============>------------]  56%
 120/193 [=================>----------]  62%
 130/193 [==================>---------]  67%
 140/193 [====================>-------]  72%
 160/193 [=======================>----]  82%
 180/193 [==========================>-]  93%
 193/193 [============================] 100%
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   Illuminate\Foundation\ViteManifestNotFoundException 

  Vite manifest not found at: /var/www/html/woof/releases/20230811143911/public/build/manifest.json

  at vendor/laravel/framework/src/Illuminate/Foundation/Vite.php:708
    704▕         $path = $this->manifestPath($buildDirectory);
    705▕ 
    706▕         if (! isset(static::$manifests[$path])) {
    707▕             if (! is_file($path)) {
  ➜ 708▕                 throw new ViteManifestNotFoundException("Vite manifest not found at: $path");
    709▕             }
    710▕ 
    711▕             static::$manifests[$path] = json_decode(file_get_contents($path), true);
    712▕         }

  i   Build the production assets: Run `npm run build` in your deployment script. 
      https://laravel.com/docs/9.x/vite#running-vite

      +2 vendor frames 

  3   app/Providers/Filament/AdminPanelProvider.php:46
      Filament\Panel::viteTheme()
      +1 vendor frames 

  5   app/Providers/Filament/AdminPanelProvider.php:29
      Filament\PanelProvider::register()

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
  0/193 [>---------------------------]   0%
  30/193 [====>-----------------------]  15%
  50/193 [=======>--------------------]  25%
  70/193 [==========>-----------------]  36%
  90/193 [=============>--------------]  46%
 100/193 [==============>-------------]  51%
 110/193 [===============>------------]  56%
 120/193 [=================>----------]  62%
 130/193 [==================>---------]  67%
 140/193 [====================>-------]  72%
 160/193 [=======================>----]  82%
 180/193 [==========================>-]  93%
 193/193 [============================] 100%
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   Illuminate\Foundation\ViteManifestNotFoundException 

  Vite manifest not found at: /var/www/html/woof/releases/20230811143911/public/build/manifest.json

  at vendor/laravel/framework/src/Illuminate/Foundation/Vite.php:708
    704▕         $path = $this->manifestPath($buildDirectory);
    705▕ 
    706▕         if (! isset(static::$manifests[$path])) {
    707▕             if (! is_file($path)) {
  ➜ 708▕                 throw new ViteManifestNotFoundException("Vite manifest not found at: $path");
    709▕             }
    710▕ 
    711▕             static::$manifests[$path] = json_decode(file_get_contents($path), true);
    712▕         }

  i   Build the production assets: Run `npm run build` in your deployment script. 
      https://laravel.com/docs/9.x/vite#running-vite

      +2 vendor frames 

  3   app/Providers/Filament/AdminPanelProvider.php:46
      Filament\Panel::viteTheme()
      +1 vendor frames 

  5   app/Providers/Filament/AdminPanelProvider.php:29
      Filament\PanelProvider::register()

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1


Am I doing something wrong, or does this mean I should be doing
npm ci ; npm run build
npm ci ; npm run build
before composer install now?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

panel Appears Unstyled After Adding Custom Theme with Vite
FilamentFFilament / ❓┊help
6mo ago
Adding Button/Action to Panel Header
FilamentFFilament / ❓┊help
3y ago
Error when viteTheme added to config
FilamentFFilament / ❓┊help
2y ago
How to enforce ->viteTheme to use https?
FilamentFFilament / ❓┊help
2y ago