- Issue created by @karunadave
- ๐บ๐ธUnited States rraney
Hello, I have Drupal CMS (D11) installed locally. I was hoping to fire up this theme/design system. I've attempted to apply the patch by installing cweagans, adding to composer.json and running composer install.
I tried running this command:
drush ev "require_once dirname(\Drupal::getContainer()->get('theme_handler')->rebuildThemeData()['civictheme']->getPathname()) . '/theme-settings.provision.inc'; civictheme_enable_modules();"
It's giving me a long list of errors. Long story short, is the theme ready for Drupal CMS?
- ๐ฎ๐ณIndia joshua1234511 Goa
@richardgaunt
Installed a fresh Drupal CMS setup and attempted to include Drupal CivicTheme via Composer.
Findings.
The issue arises because the CivicTheme monorepo specifies a dependency on the linkit module at ^6.1, while the GovCMS distribution you are using restricts the version of linkit to 7.0.2. This conflict blocks CivicTheme from being installed.
GovCMS Dependency: GovCMS 3.20.0 restricts linkit to ^6.1 while the latest development version of GovCMS has updated linkit to 7.1.
CivicTheme Dependency: CivicTheme's composer.json enforces a dependency structure that includes all modules, leading to conflicts when partial updates are attempted.
Potential Workarounds:
Use the development version of GovCMS with updated dependencies.
Wait until GovCMS releases a new stable version.
@rraney
Temporary Override (Not Recommended for Production)If you cannot wait for a new release but are hesitant about using a dev version, you can temporarily override dependencies:
composer require drupal/linkit:7.1 --no-update
composer update drupal/civictheme drupal/linkit --ignore-platform-reqs
The main cause of the issue is the use of the Composer Merge Plugin in the https://github.com/civictheme/monorepo-drupal/blob/develop/composer.json... . This plugin aggregates dependencies for all modules in the monorepo, resulting in rigid version constraints for individual components like linkit, which limits their independent use outside the monorepo.