- πΊπΈUnited States loopy1492
https://github.com/enyo/dropzone now redirects to https://github.com/dropzone/dropzone.
I have added the following to my composer.json:
"dropzone": { "type": "package", "package": { "name": "dropzone/dropzone", "version": "v5.9.3", "type": "drupal-library", "dist": { "url": "https://github.com/dropzone/dropzone/archive/refs/tags/v5.9.3.zip", "type": "tar" } } },
and
"dropzone/dropzone": "v5.9.3",
And we are still getting:
DROPZONE LIBRARY MISSING
Dropzonejs requires the dropzone.min.js library. Download it (https://github.com/enyo/dropzone) and place it in the libraries folder (/libraries)When I run composer install, the dropzone library IS in the folder (see the screenshot I am about to attach).
- πΊπΈUnited States loopy1492
Thanks @heddn. I will comment over there as well.
This is what we did to solve the problem:
Run
composer require drupal/dropzonejs enyo/dropzone
Visit github and download
https://github.com/enyo/dropzone/archive/v5.9.3.zip
Extract that zip file, rename the extracted directory todropzone
and place it in theweb/libraries/
directory.Visit github and download
https://github.com/enyo/dropzone/releases/download/v5.9.3/dist.zip
Extract the zip file and place thedist
folder in theweb/libraries/dropzone/
directory.We did not use (we removed) the following from our composer.json file, which we were asked to add when we started the process
"extra": { "merge-plugin": { "include": [ "web/modules/contrib/dropzonejs/composer.libraries.json" ] } }
No other customizations related to dropzone nor enyo were added to our composer.json file.
Run
composer update
and we no longer saw errors.
When we headed on over to the/admin/modules
path of our website, we were able to install the modules we wanted and no longer saw the error asking for thedropzone.min.js
file.- πΊπΈUnited States erutan
I tried composer #1 with the npm-asset and it didn't work. Cleaned it up, then just decided to go manual and the following two lines worked:
/web/libraries$ wget https://github.com/dropzone/dropzone/releases/download/v5.9.3/dist.zip unzip dist.zip
While hard linking a project URL in composer isn't ideal at least it's a strong reminder that I did it, so I went with an updated version of #7 π Not working with versions of Dropzone library above v5.7.2 Needs review and #4 π Not working with versions of Dropzone library above v5.7.2 Needs review :
{ "type": "package", "package": { "name": "dropzone/dropzone", "version": "5.9.3", "type": "drupal-library", "extra": { "installer-name": "dropzone/dist" }, "dist": { "url": "https://github.com/dropzone/dropzone/releases/download/v5.9.3/dist.zip", "type": "zip" } } },
then
composer require drupal/dropzonejs dropzone/dropzone
- πΉπΌTaiwan cobenash Taipei
#17 works for me.
Thanks for @erutan's help. :)
- Status changed to Needs review
about 1 year ago 6:34pm 15 November 2023 - π§πͺBelgium ikeigenwijs
I think this issue should be closed, all solutions above did not help
but patch #2 of https://www.drupal.org/project/dropzonejs/issues/3295283 π Installation not working with Dropzone 6 Needs review
did work
- Status changed to Closed: duplicate
10 months ago 11:34pm 28 February 2024