Skip to content

Composer Update fails for drupal develpment env

In our 10.3 projects for Salles and all Mobimo sites, we get an error after cloning a fresh new project:

c up results in:

Could not scan for classes inside "/drupal/web/core//lib/Drupal.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Component/DependencyInjection/Container.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Component/FileCache/FileCacheFactory.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Component/Utility/Timer.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Component/Utility/Unicode.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/Cache/Cache.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/Cache/CacheBackendInterface.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/Cache/DatabaseBackend.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/Database/Connection.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/Database/Database.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/Database/StatementInterface.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/DependencyInjection/Container.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/DrupalKernel.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/DrupalKernelInterface.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/Installer/InstallerRedirectTrait.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Core/Site/Settings.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/drupal/web/core//lib/Drupal/Component/Datetime/Time.php" which does not appear to be a file nor a folder
Plugin initialization failed (require(/drupal/web/core//includes/bootstrap.inc): Failed to open stream: No such file or directory), uninstalling plugin
  - Removing lakedrops/drupal-development-environment (v3.2.22)
    Install of lakedrops/drupal-development-environment failed

In AutoloadGenerator.php line 1406:
                                                                                                       
  require(/drupal/web/core//includes/bootstrap.inc): Failed to open stream: No such file or directory  
         

In our Allianz projects, it works fine.
As a workaround, we can execute c up again, it runs without errors, but the directories core and modules appear in the root directory:

image