The installation of this module don't work with Dropzone 6. Dropzone 6 has no /min directory in dist, the .min.js files don't exist, they are replace by a file named dropzone-min.js in the dist directory.
Source : Dropzone Changelog
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | Screenshot 2023-02-07 at 1.32.23 PM.png | 17.11 KB | loopy1492 |
| #10 | Screenshot 2023-02-07 at 1.31.20 PM.png | 185.2 KB | loopy1492 |
| #8 | Screenshot 2023-02-07 at 12.39.34 PM.png | 53.58 KB | loopy1492 |
| #6 | Screenshot 2023-02-07 at 12.13.08 PM.png | 43.39 KB | loopy1492 |
| #2 | 3295283.patch | 3.73 KB | heddn |
Issue fork dropzonejs-3295283
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
heddnThis should also work with pre Dropzone version 6 as well. At least it worked for 5.9.3.
Comment #3
socialnicheguru commentedWill you also upgrade the composer.libraries.json file too?
Comment #5
dineshreddymathuku commentedHi After Adding all libraries and path its good to installable and latest version also looks good no issues i hope for this dropzonejs
Comment #6
loopy1492 commentedhttps://github.com/enyo/dropzone now redirects to https://github.com/dropzone/dropzone.
I have added the following to my composer.json:
and
And we have applied your patch to drupal/dropzonejs (2.7.0), but we are still getting:
When I run composer install, the dropzone library IS in the folder (see the screenshot).
What am I doing wrong?
Comment #7
loopy1492 commentedOkay, I have switched to the "dist" version:
and now there is a /dist folder in the library. However, there is still no /min folder and there is no dropzone.min.js either.
Are we supposed to npm install this thing ourselves during ci or something?
Comment #8
loopy1492 commentedComment #9
loopy1492 commentedUpdate: I had to manually delete the folder and now the proper dist zip is being extracted to the folder.
I highly recommend updating this module's readme to reflect the correct composer settings required to use this library.
Thanks
Comment #10
loopy1492 commentedI spoke too soon. Even with the patch applying successfully and the correct library downloading to the folder, and several runs of drush cr, drush updb, and drush cron, the updates page is still reporting that the library cannot be found.
Comment #11
ikeigenwijs commented#2 3295283.patch works for my finely got dropzone working after a lot of versions and sources in composer.
i dont have the library missing on status page
Comment #12
nils.destoop commentedThe patch in #2 works for existing installs, but it fails when installing the module. The library definition does not exist yet during install.
Comment #13
nils.destoop commentedComment #16
berdirCreated a merge request with an updated version of the patch, lots of cleanup and tests, need to fix up some things as tests are now different between v5 and v6.
Comment #18
berdirMerged!
Comment #20
benji07 commentedIf you're encountering issues with installing Dropzone on Drupal, an effective solution is to revert to version 2.8.0, as version 2.9.0 has been found to have some problems. To do this, you simply need to update your composer.json file to specify the desired version of the dependencies. Add the following lines to your composer.json under the require section:
This will force the use of version 2.8.0 for dropzonejs and dropzonejs_eb_widget, which has proven to be stable and free from the issues associated with version 2.9.0. Make sure to run composer update after making this change to apply the new versions.
Comment #21
berdirIt would be useful if you would create an issue to explain those "issues" and explain exactly how and where you have dropzone installed. This supports many different locations.
Comment #22
volkerk commented@Berdir: Added follow-up for dist file detection.
#3424947: Fix detection of dropzonejs dist files for versions < 6
Comment #24
therobyouknow commentedThis is perhaps a great example for using import maps.
What exactly is an import map?
Answer:
- From: https://www.drupal.org/project/importmap
Import maps are available in Javascript and aren't a Drupal-specific concept; Javascript projects in general can use them.
Modules:
https://www.drupal.org/project/importmap (aforementioned)
https://www.drupal.org/project/importmaps