4.x installation method doesn't install the library

Created on 23 August 2023, over 1 year ago
Updated 20 September 2023, over 1 year ago

Not sure what i'm doing wrong here.

Here's my steps:
1. Add this to root composer.json

    "merge-plugin": {
        "include": [
            "modules/contrib/chosen/composer.libraries.json"
        ]
    },
...
        "installer-paths": {
            "libraries/{$name}": [
                "type:drupal-library"
            ],
...

2. composer require oomphinc/composer-installers-extender, "yes" to allow plugin
3. composer require wikimedia/composer-merge-plugin, "yes" to allow plugin
4. composer require drupal/chosen:^4

Expectation:
libraries directory contains the chosen javascript

Observation:
libraries directory is empty

I'm going crazy, what am i doing wrong here?

πŸ’¬ Support request
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States AaronBauman Philadelphia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @AaronBauman
  • Status changed to Fixed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States AaronBauman Philadelphia

    found it.

    `merge-plugin` was in top-level composer.json declarations, instead of the `extra` section.

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

  • Status changed to Fixed over 1 year ago
  • πŸ‡ΈπŸ‡°Slovakia coaston

    Hi Aron,

    I am getting crazy too. Can you provide where exactly you have added merge-plugin ?

    I have added it as follow :

            },
            "sort-packages": true
        },
        "extra": {
    		"merge-plugin": {
        "include": [
            "web/modules/contrib/chosen/composer.libraries.json"
              ]
              },	
    		
            "drupal-scaffold": {
                "locations": {
                    "web-root": "web/"
                }
            },
            "installer-paths": {
                "web/core": [
                    "type:drupal-core"
                ],
                "web/libraries/{$name}": [
                    "type:drupal-library"
                ],
    
    
    

    But unable to make it works. I have alredy download library from github and added it manually to libraries foldder - also with no luck...

Production build 0.71.5 2024