Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello, i'm trying to enable the submodule video_embed_media but it return:
Module video_embed_media cannot be enabled because it depends on entity (>=8.x-1.0-alpha3) but is available
In my composer.json I've:
"drupal/video_embed_field": "1.x-dev",
"drupal/media_entity": "1.x-dev",
"drupal/entity": ">=1.0-alpha3"
I've cleared all the caches multiple time without results...
Comments
Comment #2
dev22.addweb CreditAttribution: dev22.addweb at AddWeb Solution Pvt. Ltd. commentedI tried with drupal 8.0.3 and 8.1.5 both version. In Drupal 8.0.3 version, Video Embed Field can be installed but
Video Embed Media can not be enabled because of system is incompatible with incompatible with version 8.0.3.
Drupal version should be >=8.1.0.
In Drupal 8.1.5 version, It can be installed. Please try with Drupal 8.1.5 version.
I hope it will help you.
Comment #3
csedax90 CreditAttribution: csedax90 commentedI'm currently running Drupal 8.1.8
Comment #4
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedIt sounds like you have the right version of everything. If composer has cloned the repo and the info file doesn't actually contain the version string, it won't install from the UI. Oddly enough running something like
\Drupal::service('module_installer')->install(['video_embed_media']);
will still work.I'd add the version string "version: 8.x-1.0-alpha3" to the info file, install the module and go from there. I have that line of code in my checked out version for my own testing.
Can you confirm this is indeed the issue?
Comment #5
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedComment #6
csedax90 CreditAttribution: csedax90 commentedI've added the string: version: 8.x-1.0-alpha3 into modules/entity/entity.info.yml and now it works...
Comment #7
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedYeah, that is added by the packager, but not when modules are cloned directly. I suspect that's what composer is doing, or the d.org composer facade doesn't add this information.
Comment #8
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commented