while running composer require drupal/commerce:2.x-dev

getting this:

  Problem 1
    - drupal/commerce_cart 2.17.0 requires drupal/commerce 2.17.0 -> satisfiable by drupal/commerce[2.17.0] but these conflict with your requirements or minimum-stability.
    - drupal/commerce_cart 2.17.0 requires drupal/commerce 2.17.0 -> satisfiable by drupal/commerce[2.17.0] but these conflict with your requirements or minimum-stability.
    - drupal/commerce_cart 2.17.0 requires drupal/commerce 2.17.0 -> satisfiable by drupal/commerce[2.17.0] but these conflict with your requirements or minimum-stability.
    - Installation request for drupal/commerce_cart (locked at 2.17.0) -> satisfiable by drupal/commerce_cart[2.17.0].

commerce_cart is... a sub-module of the same upgraded module.

Comments

PlayfulWolf created an issue. See original summary.

martijn de wit’s picture

Category: Bug report » Support request

I believe when you update with composer you should not use composer require. The problem you are facing is that the dependencies are not updated with this command.

did you try to bump the version to dev in your composer.json and then run composer update drupal/commerce --with-all-dependencies

playfulwolf’s picture

Status: Active » Closed (works as designed)

thank you very much, it worked with composer update drupal/commerce --with-all-dependencies

jaskaran.nagra’s picture

It didn't work for me. I managed to finally get it resolved using composer update drupal/commerce drupal/commerce_cart drupal/commerce_order drupal/commerce_checkout drupal/commerce_payment drupal/commerce_price drupal/commerce_product drupal/commerce_store drupal/commerce_number_pattern --with-all-dependencies