I consider installations like this pretty standard.
composer create-project --no-install drupal/recommended-project:9.5.11 . composer config platform.php 8.1 composer config allow-plugins true composer config process-timeout 2000 composer config optimize-autoloader true composer config classmap-authoritative false composer require --no-install php:8.1 drupal/field_group drupal/geolocation drush/drush composer install I then open up the site, go through the process of setting up a fresh site.
drush pm:enable --yes field_group geolocation geolocation_leaflet telephone drush cr composer dump-autoload Everything seems to work fine, but when the configuration menu leads me to /admin/config/services/geolocation/nominatim, that one displays
InvalidArgumentException: Class "\Drupal\geolocation_leaflet\Form\NominatimGeocodingSettings" does not exist. in Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() (line 24 of core\lib\Drupal\Core\DependencyInjection\ClassResolver.php).
Drush lists the modules as enabled, also \Drupal::config('core.extension')->get('module'); lists the enabled modules correctly and so does the webinterface of "Extend" at /admin/modules look as expected.
But \Drupal::service('module_handler')->getModuleList(); does not include them and the autoloader just does not get namespaces under web/modules/** added.
I can go debug deeper and probably will, I can also include all the<100 namespace-prefixes into the composer.json file manually, but I am here in the wrong place, since this all should just work out of the box.
Anyone experienced such? Any advice here?