Drupal 9
chosen 3
chosen lib 3

The modules and library were installed with composer

The library is installed and can be found at /vendor/harvesthq/chosen/ but I still get the error "The library could not be detected. You need to download the Chosen JavaScript file and extract the entire contents of the archive into the libraries directory on your server.". Any suggestions?

Comments

valderson created an issue. See original summary.

valderson’s picture

Tried dev branch with the same results

valderson’s picture

Ok so I found the info on the README but I still get the libraries under vendor no matter what I try.
I installed oomphinc/composer-installers-extender
here is the extra section of my composer.json what am i missing?

"extra": {
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"installer-paths": {
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library",
"harvesthq/chosen"
],
"web/modules/contrib/{$name}": [
"type:drupal-module"
],
"web/profiles/contrib/{$name}": [
"type:drupal-profile"
],
"web/themes/contrib/{$name}": [
"type:drupal-theme"
],
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"web/modules/custom/{$name}": [
"type:drupal-custom-module"
],
"web/themes/custom/{$name}": [
"type:drupal-custom-theme"
],
"installer-types": [
"library"
]
}

valderson’s picture

Ok got it
Thanks to hussain for his video it let me see my error and where i was placing

"installer-types": [
"library"
]

after i moved it to the right place it worked.

matthiasm11’s picture

Status: Active » Closed (works as designed)