After composer dumpautoload show InstalledVersions" not found

24 Views Asked by At

I have a TYPO3 v11 project The project was running fine and i'm working on a new plugin source code. After a "composer dumpautoload" command in the console, The project found this error:

Fatal error: Uncaught Error: Class "Composer\InstalledVersions" not found 
 TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(0, 1) #3 /var/www/html/web/index.php(21): {closure}() #4 {main} thrown in /var/www/html/web/typo3/sysext/core/Classes/Core/Environment.php on line 137

Any idea how i can get back the project working again ? Thanks

1

There are 1 best solutions below

0
Mathias Brodala On

It is very likely that you did invoke Composer 1.x where Composer\InstalledVersions does not exist.

This was added with Composer 2.x so make sure your Composer version is up-to-date.