Problem/Motivation
I enabled this module in a project, set it up locally, configured everything and can confirm this is all working.
When I export my settings via drush cex -y and deploy changes to my dev environment, the deploy script runs a config import drush cim -y but that fails on deployment:
[error] Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.
Configuration <em class="placeholder">webform_dynamic.settings</em> depends on the <em class="placeholder">webform_dynamic</em> extension that will not be installed after import. in Drupal\Core\Config\ConfigImporter->validate() (line 814 of /data/sites/web/henradeu/subsites/dev.henrad.eu/web/core/lib/Drupal/Core/Config/ConfigImporter.php).
In ConfigImportCommands.php line 290:
The import failed due to the following reasons:
Configuration <em class="placeholder">webform_dynamic.settings</em> depends on the <em class="placeholder">webform_dynamic</em> extension that will not be installed after import.
Steps to reproduce
- Set up locally
- Export local config
- Import config on testing/development/production environment
Proposed resolution
rename webform_dynamic.settings to webform_dynamic_autocomplete.settings ?
Remaining tasks
- verify the bug
- verify the solution
- create a patch
- create new version of this module
User interface changes
none
API changes
none
Data model changes
none, but settings file would change, so existing projects would probable have to do the setup of this module again at /admin/config/webform_dynamic_autocomplete/settings
Comments
Comment #2
flyke commentedThis patch is working.
You have to set up
/admin/config/webform_dynamic_autocomplete/settingsagain and export your settings (drush cex -y).Then you will have both
webform_dynamic.settings.ymlandwebform_dynamic_autocomplete.settings.ymlfiles. You need to remove (delete) the oldwebform_dynamic.settings.ymlfile.Then you can import (
drush cim -y) both locally as well as on your environment (so deploying will work now).Comment #3
kushal bansal commented