I have a Drupal 8.9.13. I wanted to install a new module, for example the google_tag. But in my case I do that in my CI/CD process. So to do that I did the following actions:
- edit the composer.json in a way to contain the new module
- the composer.lock is updated for the same reason (by enabling the module using drush)
- updated the core.extension.yml in a way to contain a line
- generated the *.settings.yml by exporting the configuration.
During the deployment, first of all the code source is get from the git repo and then a 'composer install' is called. After that a "./vendor/bin/drush config-import -y" is called to import the configuration of the new module (event the module wasn't configured, there is a default config). And here I have the following error:
Unable to install the google_tag module since it does not exist.
Does someone have any idea what might be the problem?
I saw also that in Drupal's database in the table config for the value of core.extension I have a value which usually describes the activated modules and the one I am trying to activate is not there.
drush -y deploy
ordrush cr && drush -y cim
instead? That's why I linked this question.