Problem/Motivation

The video_embed_plus module currently declares a dependency on video_embed_field in its info.yml file. However, the default version constraint resolves to older versions (1.x or 2.x), which are not compatible with Drupal 11.

This leads to Composer errors when trying to install the module on a Drupal 11 project, unless the user explicitly forces video_embed_field 3.x manually via CLI.

Steps to reproduce

  1. Run composer require drupal/video_embed_plus in a Drupal 11 site.
  2. Composer tries to install an incompatible version of video_embed_field.
  3. Installation fails due to unresolved core version constraints.

Proposed resolution

Update the composer.json file of the video_embed_plus module to explicitly require:

"drupal/video_embed_field": "3.0.x-dev"

Keep the info.yml dependency as drupal:video_embed_field (without version constraint), but Composer will now correctly resolve the 3.x line which is compatible with Drupal 11.

Remaining tasks

  • Update composer.json file with the correct version constraint.
  • Tag and release a patch or update to reflect this change.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

msark created an issue. See original summary.

msark’s picture

Issue resolved in version 1.0.1.

- Added `composer.json` with `"drupal/video_embed_field": "3.0.x-dev"` to ensure Drupal 11 compatibility.
- Removed invalid version constraint from `.info.yml`.
- Tagged and released as `1.0.1`.

Installation now works correctly on Drupal 11 using:
composer require drupal/video_embed_plus:^1.0

msark’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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