Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Uncaught Error: Class "Symfony\Component\Console\Output\AnsiColorMode" not found in phar:/vendor/symfony/console/Terminal.php:18 #435

Open
glo45343 opened this issue Dec 9, 2022 · 5 comments
Assignees

Comments

@glo45343
Copy link

glo45343 commented Dec 9, 2022

PHP Fatal error: Uncaught Error: Class "Symfony\Component\Console\Output\AnsiColorMode" not found in phar:/vendor/symfony/console/Terminal.php:18

my composer.json file

"require": {
"php": "^7.3|^8.0",
"illuminate/log": "^9.0",
"laravel-zero/framework": "^9.0",
"laminas/laminas-text": "^2.9"
},
"require-dev": {
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^9.5"
},
"autoload": {
"psr-4": {
"App\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"scripts": {
"post-create-project-cmd": [
"@php application app:rename"
]
},

@glo45343
Copy link
Author

glo45343 commented Dec 9, 2022

./appname app:build -n

./builds/appname config:show ( this is custom command)
Now getting error

@glo45343
Copy link
Author

If i clone freshly

PHP Fatal error: Uncaught Error: Class "Composer\InstalledVersions" not found in phar:///home/siva/myapp/builds/mptt/vendor/laminas/laminas-servicemanager/src/autoload.php:31

@glo45343
Copy link
Author

image

@liamka
Copy link

liamka commented May 10, 2023

same situation

any help?

@liamka
Copy link

liamka commented Jun 29, 2023

Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants