I installed Drupal 8.5.6 and Drupal Commerce with Composer. They installed fine, but after I cleared the cache, I got this exception in a WSOD.
Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: "You have requested a non-existent service "extension.list.module"." at C:\wamp\www\drupal-8.5.6\core\lib\Drupal\Component\DependencyInjection\Container.php line 151
I searched for extension.list.module and I found this.
function system_rebuild_module_data() {
return \Drupal::service('extension.list.module')->reset()->getList();
}
What did I do wrong to cause this problem?
What is my next step to solve this dilemma?