Problem/Motivation

The module's composer.json requires commerce ^2.0 and it prevents from upgrading projects to use Commerce 3.x where the commerce_order_data_formatter is installed

Steps to reproduce

Try to upgrade the Commerce Core module to 3.1 on a site where the commerce_order_data_formatter module is also installed.
You will receive:
- drupal/commerce_order_data_formatter 1.0.2 requires drupal/commerce ^2.0 -> found drupal/commerce[dev-2.x, 2.0.0-alpha1, ..., 2.x-dev (alias of dev-2.x)] but it conflicts with your root composer.json require (^3.1).

Proposed resolution

Update composer.json to use:

"require": {
"drupal/commerce": "^2.3 || ^3"
}

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gkavin2 created an issue. See original summary.

gkavin2’s picture

Title: D11 Support » D11 & Commerce 3 Support
Issue summary: View changes

oleksandr yushchenko’s picture

Title: D11 & Commerce 3 Support » Commerce 3 Support
oleksandr yushchenko’s picture

Status: Active » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

gkavin2’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.