New module service is dependency on old module service - The service has a dependency on a non-existent service I have a new module moduleB. It defines a service that is used in the dependency injection of moduleA.
moduleA is already enabled, its changes are just to the services definition. The info.yml has moduleB as a dependency.
Both moduleA and moduleB are in the core.extension config to be enabled.
moduleB cannot be enabled using config (cim or csim) because the missing dependency from moduleA throws an exception.
How can I get config to enable the missing module before checking the service dependency? Or, how can I restructure to allow the existing module to use the new module service to allow enabling the module through drush ?
Thanks!
You can add moduleA to core.extension.yml on a new line (with the other modules) as module_a: 0.