This article provides a solution for conflicting component dependencies. When trying to setup or update Adobe Commerce using the Web Setup Wizard, you see the “We found conflicting component dependencies” Composer error message.
A conflicting component dependencies error message similar to the following (actual package names and versions will vary):
We found conflicting component dependencies.
You are trying to update package(s) magento/module-sample-data to 1.0.0-beta
We have detected conflicts with the following packages:
- magento/sample-data version 0.74.0-beta15. Please try to update it to one of the following package versions: 0.74.0-beta16, 0.74.0-beta14, 0.74.0-beta13, 0.74.0-beta12, 0.74.0-beta11, 0.74.0-beta10, 0.74.0-beta9, 0.74.0-beta8, 0.74.0-beta7
This message is displayed if Composer cannot determine which components to install or update.
Two main scenarios can lead to conflicting component dependencies. Click on your scenario to get troubleshooting steps.
If you are upgrading Adobe Commerce on cloud infrastructure, try the following to resolve conflicting component dependencies:
Conflicting component dependencies can also be caused by third-party modules that depend on earlier Commerce components than the ones you have installed. Try the following:
composer.json
to make any of these changes. Typically, the versions your project is requesting will be defined in the require
or require-dev
property of the object in that JSON file. Depending on the options of package versions provided, they might specify a specific version or a constraint. For general guidance on how to use composer, if you are on our cloud infrastructure, you can refer to Cloud for Adobe Commerce > Technologies and Requirements > Composer in our developer documentation. If you are on Adobe Commerce on-premises, refer to Adobe Commerce > Installation Guide > Install Adobe Commerce Using the Composer .Request assistance at our main forum or contact an Adobe Commerce Partner that assists in Open Source issues.