Composer can't upgrade drupal from 10.0 to 10.1 - "it conflicts with another require" with no additional information

Created on 24 October 2023, 8 months ago
Updated 7 February 2024, 4 months ago

When I run composer update "drupal/*" --with-all-dependencies after upgrading to Drupal 10.1 from Drupal 10.0 I get the following below error

Problem 1
 - Root composer.json requires drupal/ckeditor ^1.0, found drupal/ckeditor[dev-1.0.x, 1.0.0-rc1, ..., 1.0.x-dev (alias of dev-1.0.x)] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - Root composer.json requires drupal/classy ^1.0, found drupal/classy[dev-1.0.x, 1.0.0-alpha1, ..., 1.0.x-dev (alias of dev-1.0.x)] but these were not loaded, likely because it conflicts with another require.
  Problem 3
    - Root composer.json requires drupal/color ^1.0, found drupal/color[dev-1.x, 1.0.1, 1.0.2, 1.0.3, 1.x-dev (alias of dev-1.x)] but these were not loaded, likely because it conflicts with another require.

As these three modules has been removed from drupal core in D10 so we are using its contrib version and all these modules are compatible with D10, I am struggling to find out which package/dependecies is breaking here which not allowing to upgrade in D10.1.

If anyone having any suggestion on this it would be really helpful.

💬 Support request
Status

Active

Version

10.0

Component
Composer 

Last updated about 22 hours ago

No maintainer
Created by

🇮🇳India Sana.Neyazi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Sana.Neyazi
  • 🇺🇸United States cilefen

    For support could you please share a composer.json file that exhibits the issue?

  • 🇺🇸United States chambers

    I've been having the same issue with drupal/rdf, drupal/classy, drupal/color. Still having the issue now that I'm trying to upgrade to 10.2.2

    {
    "name": "drupal/drupal",
    "description": "Drupal is an open source content management platform powering millions of websites and applications.",
    "type": "project",
    "license": "GPL-2.0+",
    "require": {
    "php": "^8.1",
    "composer/installers": "^1.9",
    "cweagans/composer-patches": "^1.7",
    "dinbror/blazy": "^1.8",
    "drupal/acquia_connector": "^4.0",
    "drupal/acquia_perz": "^4.1",
    "drupal/acquia_purge": "^1.2",
    "drupal/admin_toolbar": "^3.0.3",
    "drupal/advagg": "^6.0",
    "drupal/allowed_formats": "^3.0",
    "drupal/better_exposed_filters": "^6.0",
    "drupal/blazy": "^2.13",
    "drupal/bricks": "^2.1",
    "drupal/captcha": "^2.0",
    "drupal/ckeditor_indentblock": "^1.0",
    "drupal/classy": "^1.0",
    "drupal/clientside_validation": "^4.0",
    "drupal/color": "^1.0",
    "drupal/config_devel": "^1.8",
    "drupal/config_export_ignore": "^1.1",
    "drupal/config_filter": "^1.8",
    "drupal/config_ignore": "^2.3",
    "drupal/config_import": "^3.0",
    "drupal/config_split": "^1.7",
    "drupal/config_update": "^2.0@alpha",
    "drupal/core-composer-scaffold": "^10",
    "drupal/core-project-message": "^10",
    "drupal/core-recommended": "^10",
    "drupal/core-vendor-hardening": " ^10",
    "drupal/depcalc": "^1.2",
    "drupal/devel": "^5.0",
    "drupal/devel_entity_updates": "^4.1",
    "drupal/devel_kint_extras": "^1.0",
    "drupal/diff": "^1.0",
    "drupal/domain": "^2.0@beta",
    "drupal/draggableviews": "^2.0.1",
    "drupal/dropdown_language": "^4.0",
    "drupal/eck": "^2.0",
    "drupal/entity": "^1.2",
    "drupal/entity_browser": "^2.7",
    "drupal/entity_reference_revisions": "^1.9",
    "drupal/environment_indicator": "^4.0",
    "drupal/eva": "^3.0",
    "drupal/field_group": "^3.2",
    "drupal/field_group_link": "^3.0-rc2",
    "drupal/gin": "^3.0@RC",
    "drupal/gin_toolbar": "^1.0@rc",
    "drupal/google_tag": "^2.0",
    "drupal/image_effects": "^3.0",
    "drupal/inline_entity_form": "1.x-dev",
    "drupal/job_scheduler": "^4.0",
    "drupal/jquery_ui_touch_punch": "^1.0",
    "drupal/language_access": "^2.0",
    "drupal/link_attributes": "^1.11",
    "drupal/mailchimp": "^2.2",
    "drupal/media_entity_generic": "^1.1",
    "drupal/media_library_edit": "^3.0",
    "drupal/media_library_form_element": "^2.0",
    "drupal/memcache": "^2.3",
    "drupal/metatag": "^1.16",
    "drupal/metatag_async_widget": "1.0.x-dev",
    "drupal/migrate_plus": "^6.0",
    "drupal/migrate_tools": "^6.0",
    "drupal/paragraphs": "^1.15",
    "drupal/path_redirect_import": "^2.0",
    "drupal/pathauto": "^1.8",
    "drupal/purge": "^3.2",
    "drupal/rabbit_hole": "^1.0@beta",
    "drupal/rdf": "^2.1",
    "drupal/recaptcha": "^3.0",
    "drupal/redirect": "^1.6",
    "drupal/scheduler_content_moderation_integration": "^2.0.0-beta1",
    "drupal/schema_metatag": "^2.3.0",
    "drupal/shield": "^1.4",
    "drupal/simple_sitemap": "^4.1",
    "drupal/svg_image": "^3.0",
    "drupal/token_filter": "^2.0",
    "drupal/translatable_menu_link_uri": "^2.0",
    "drupal/unpublished_node_permissions": "^1.1",
    "drupal/untranslated_404": "^1.0@beta",
    "drupal/upgrade_status": "^4.0",
    "drupal/video_embed_field": "^2.4",
    "drupal/video_embed_tiktok": "^1.0",
    "drupal/views_infinite_scroll": "^2.0.0",
    "drupal/webform": "^6.2",
    "drush/drush": "^12",
    "enshrined/svg-sanitize": "0.15.0",
    "mglaman/composer-drupal-lenient": "^1.0",
    "nolimits4web/swiper": "^4.5",
    "phpunit/phpunit": "^9.5",
    "politsin/jquery-ui-touch-punch": "^1.0",
    "symfony/phpunit-bridge": "^6.3",
    "wikimedia/composer-merge-plugin": "^2.0"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "config": {
    "sort-packages": true,
    "autoloader-suffix": "Drupal8",
    "allow-plugins": {
    "composer/installers": true,
    "cweagans/composer-patches": true,
    "oomphinc/composer-installers-extender": true,
    "drupal/core-vendor-hardening": true,
    "wikimedia/composer-merge-plugin": true,
    "drupal/console-extend-plugin": true,
    "drupal/core-composer-scaffold": true,
    "drupal/core-project-message": true,
    "mglaman/composer-drupal-lenient": true
    }
    },
    "extra": {
    "_readme": [
    "By default Drupal loads the autoloader from ./vendor/autoload.php.",
    "To change the autoloader you can edit ./autoload.php."
    ],
    "installer-paths": {
    "core": [
    "type:drupal-core"
    ],
    "libraries/{$name}": [
    "type:drupal-library"
    ],
    "modules/contrib/{$name}": [
    "type:drupal-module"
    ],
    "profiles/contrib/{$name}": [
    "type:drupal-profile"
    ],
    "themes/contrib/{$name}": [
    "type:drupal-theme"
    ],
    "drush/{$name}": [
    "type:drupal-drush"
    ],
    "modules/custom/{$name}": [
    "type:drupal-custom-module"
    ],
    "themes/custom/{$name}": [
    "type:drupal-custom-theme"
    ]
    },
    "patches": {
    "drupal/better_exposed_filters": {
    " https://www.drupal.org/project/better_exposed_filters/issues/2996297 🐛 Reset button does not use AJAX Needs work ": " https://www.drupal.org/files/issues/2021-07-01/better_exposed_filters-re... "
    },
    "drupal/eck": {
    " https://www.drupal.org/node/3376678 created local patch to move eck 2.0 update numbers conflicting with patch update numbers": "patches/eck-v20-revisions-3376678-1.patch"
    },
    "drupal/core": {
    "Improperly deployed *missing* entity table breaks module uninstall": " https://www.drupal.org/files/issues/2020-09-01/Improperly_deployed_missi... ",
    "The \"moderation_state\" base field overrides cause install from existing config to fail": " https://www.drupal.org/files/issues/2021-03-05/fix_moderation_state_bfo_... ",
    "BaseFieldOverride fails to take into account ContentEntityInterface::bundleFieldDefinitions() when invoking onFieldDefinitionUpdate()": " https://www.drupal.org/files/issues/2023-11-02/2321071-71.patch ",
    " https://www.drupal.org/project/drupal/issues/3270356 ": " https://www.drupal.org/files/issues/2022-03-18/3270356-jsonserialize-php... "
    },
    "drupal/pathauto": {
    "Generate aliases for all languages.": " https://www.drupal.org/files/issues/2018-07-12/2973478-4.patch "
    },
    "drupal/path_redirect_import": {
    "Update to support path redirect import migrate_tools 6.0.2": " https://www.drupal.org/files/issues/2023-07-06/path_redirect_import-3373... "
    },
    "drupal/inline_entity_form": {
    "Support adding new entities when translating": " https://www.drupal.org/files/issues/2022-07-20/2822764-89.patch "
    },
    "drupal/translatable_menu_link_uri": {
    "Mismatched entity or field definitions - link override field needs updated": " https://www.drupal.org/files/issues/2023-04-15/3221161-21.patch "
    },
    "drupal/config_export_ignore": {
    "Automated Drupal 10 compatibility fixes": " https://www.drupal.org/files/issues/2022-07-18/config_export_ignore.1.1.... "
    },
    "drupal/confi": {
    "add config import test version": "patches/confi_config_import_test_version.patch"
    }
    },
    "drupal-lenient": {
    "allowed-list": [
    "drupal/config_export_ignore"
    ]
    },
    "drupal-scaffold": {
    "locations": {
    "web-root": "./"
    },
    "file-mapping": {
    "[web-root]/.htaccess": "assets/scaffold/.htaccess",
    "[web-root]/robots.txt": "assets/scaffold/robots.txt"
    }
    }
    },
    "autoload": {
    "psr-4": {
    "Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer"
    }
    },
    "scripts": {
    "pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump"
    },
    "repositories": [
    {
    "type": "composer",
    "url": "https://packages.drupal.org/8"
    },
    {
    "type": "package",
    "package": {
    "name": "dinbror/blazy",
    "version": "1.8.2",
    "type": "drupal-library",
    "dist": {
    "url": "https://github.com/dinbror/blazy/archive/1.8.2.zip",
    "type": "zip"
    }
    }
    },
    {
    "type": "package",
    "package": {
    "name": "nolimits4web/swiper",
    "version": "4.5.0",
    "type": "drupal-library",
    "dist": {
    "url": "https://github.com/nolimits4web/swiper/archive/v4.5.0.zip",
    "type": "zip"
    }
    }
    }
    ]
    }

  • 🇺🇸United States cilefen

    @chambers Precisely what is the command you type and what, in full, is the output?

  • 🇺🇸United States chambers

    fin composer require drupal/core-recommended:10.2.2 drupal/core-composer-scaffold:10.2.2 drupal/core-project-message:10.2.2 --update-with-all-dependencies
    ./composer.json has been updated
    Running composer update drupal/core-recommended drupal/core-composer-scaffold drupal/core-project-message --with-all-dependencies
    Gathering patches for root package.
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    Problem 1
    - Root composer.json requires drupal/classy ^1.0, found drupal/classy[dev-1.0.x, 1.0.0-alpha1, ..., 1.0.x-dev (alias of dev-1.0.x)] but these were not loaded, likely because it conflicts with another require.
    Problem 2
    - Root composer.json requires drupal/color ^1.0, found drupal/color[dev-1.x, 1.0.1, 1.0.2, 1.0.3, 1.x-dev (alias of dev-1.x)] but these were not loaded, likely because it conflicts with another require.
    Problem 3
    - Root composer.json requires drupal/rdf ^2.1, found drupal/rdf[dev-2.x, 2.1.0, 2.1.1, 2.x-dev (alias of dev-2.x)] but these were not loaded, likely because it conflicts with another require.
    Problem 4
    - Root composer.json requires drupal/core-recommended 10.2.2 -> satisfiable by drupal/core-recommended[10.2.2].
    - drupal/core-recommended 10.2.2 requires symfony/psr-http-message-bridge ~v6.4.0 -> found symfony/psr-http-message-bridge[v6.4.0-BETA1, ..., 6.4.x-dev] but these were not loaded, likely because it conflicts with another require.

    ======

    fin composer update "drupal/core-*" --with-all-dependencies
    Gathering patches for root package.
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    Problem 1
    - Root composer.json requires drupal/classy ^1.0, found drupal/classy[dev-1.0.x, 1.0.0-alpha1, ..., 1.0.x-dev (alias of dev-1.0.x)] but these were not loaded, likely because it conflicts with another require.
    Problem 2
    - Root composer.json requires drupal/color ^1.0, found drupal/color[dev-1.x, 1.0.1, 1.0.2, 1.0.3, 1.x-dev (alias of dev-1.x)] but these were not loaded, likely because it conflicts with another require.
    Problem 3
    - Root composer.json requires drupal/rdf ^2.1, found drupal/rdf[dev-2.x, 2.1.0, 2.1.1, 2.x-dev (alias of dev-2.x)] but these were not loaded, likely because it conflicts with another require.

  • 🇺🇸United States cilefen

    What is the Composer version?

  • 🇺🇸United States chambers

    Composer version 2.6.2

  • 🇺🇸United States cilefen

    Upgrade to 2.6.6 and try.

  • 🇺🇸United States chambers

    The composer upgrade fixed the issue for me.

Production build 0.69.0 2024