Command failed with exit code 255: composer serve

Murali_Ramanath
Shopify Partner
2 0 5

Command failed with exit code 255: composer serve
> Composer\Config::disableProcessTimeout
> php artisan serve
PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Application" not found in C:\Users\admin\progressive\web\bootstrap\app.php:14
Stack trace:
#0 C:\Users\admin\progressive\web\artisan(20): require_once()
#1 {main}
thrown in C:\Users\admin\progressive\web\bootstrap\app.php on line 14
Script php artisan serve handling the serve event returned with error code 255

Fatal error: Uncaught Error: Class "Illuminate\Foundation\Application" not found in C:\Users\admin\progressive\web\bootstrap\app.php:14
Stack trace:
#0 C:\Users\admin\progressive\web\artisan(20): require_once()
#1 {main}
thrown in C:\Users\admin\progressive\web\bootstrap\app.php on line 14

Replies 4 (4)

sinzen1
Shopify Partner
7 0 4

please install php 8.2

sinzen1
Shopify Partner
7 0 4

Run composer install on web folder. and go back on root folder and run npm run build on web folder. 

composer install
npm run build

 

swetajha
Shopify Partner
3 0 1

It works for me!

dev-sweta

rishikushwaha
Tourist
3 0 1

Did not get the solution, please provide the proper Solution for it.

I also installed PHP 8.2 and Composer.