Composer install fails because of required Vite files
GitHub
Composer install fails because of Vite · filamentphp filament · Dis...
Composer install fails, I do not know why a Vite file is required to discover packages. composer install composer.json { "name": "proculair/redacted", "type": "pr...
Solution:Jump to solution
---
github.com/sinnbeck solved the issue: https://github.com/filamentphp/filament/discussions/9260#discussioncomment-7357852...
GitHub
Composer install fails because of required Vite files · filamentphp...
Composer install fails, I do not know why a Vite file is required to discover packages. composer install composer.json { "name": "proculair/redacted", "type": "pr...
7 Replies
Close that please you haven't setup Vite within your project, you need a vite manifest file to build
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
I do not think I understand.
I have added the vite config I'm using in the github discussion
Ahh sorry, run: npm run build after setting up vite
This will compile the assets then the files can find them, as autoloader is not finding them composer cannot run.
So what is the correct command order
This order does not work because the first command fails
1. composer install
2. npm install
3. npm run build
And the order
1. npm install
2. npm run build
3. composer install
Does not work because vite requries composer files
Solution
---
github.com/sinnbeck solved the issue: https://github.com/filamentphp/filament/discussions/9260#discussioncomment-7357852
GitHub
Composer install fails because of required Vite files · filamentphp...
Composer install fails, I do not know why a Vite file is required to discover packages. composer install composer.json { "name": "proculair/redacted", "type": "pr...