As per https://www.drupal.org/project/drupal/issues/3359497, when libraries have a license specified, then the url must be included.

The media_directories_ui.libraries.yml file specifies the MIT license, but does not include a URL.

This leads to an error "Undefined array key 'url' in ... JsCollectionOptimizerLazy.php", which I was seeing after upgrading a recent site to Drupal 10.1.x.

Comments

Gomez_in_the_South created an issue. See original summary.

gomez_in_the_south’s picture

Status: Active » Needs review
StatusFileSize
new761 bytes

Attached patch adds the license url as: http://opensource.org/licenses/mit-license.php, which I had seen referenced in other modules.

ytsurk’s picture

Status: Needs review » Fixed

Thank you for your contribution!

gomez_in_the_south’s picture

Pleasure, @ytsurk.

Would it be possible to get a new release? Otherwise other users may come across the same problem.

Status: Fixed » Closed (fixed)

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