- πΊπΈ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": "v6.0.0-beta.2", "type": "drupal-library", "dist": { "url": "https://github.com/dropzone/dropzone/archive/refs/tags/v5.9.3.zip", "type": "tar" } } },
and
"dropzone/dropzone": "v6.0.0-beta.2",
And we have applied your patch to drupal/dropzonejs (2.7.0), but 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).
What am I doing wrong?
- πΊπΈUnited States loopy1492
Okay, I have switched to the "dist" version:
"dropzone": { "type": "package", "package": { "name": "dropzone/dropzone", "version": "v6.0.0-beta.2", "type": "drupal-library", "extra": { "installer-name": "dropzone/dist" }, "dist": { "url": "https://github.com/dropzone/dropzone/archive/refs/tags/v6.0.0-beta.2/dist.zip", "type": "zip" } } },
and now there is a /dist folder in the library. However, there is still no /min folder.
Are we supposed to npm install this thing ourselves during ci or something?
- πΊπΈUnited States loopy1492
Update: 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
- πΊπΈUnited States loopy1492
I 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.
- Status changed to RTBC
about 1 year ago 6:35pm 15 November 2023 - π§πͺBelgium ikeigenwijs
#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
- π§πͺBelgium nils.destoop
The patch in #2 works for existing installs, but it fails when installing the module. The library definition does not exist yet during install.
- Status changed to Needs work
9 months ago 3:51pm 12 February 2024 - First commit to issue fork.
- π¨πSwitzerland berdir Switzerland
Created 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.
-
Berdir β
committed 164a0ce4 on 8.x-2.x
Issue #3295283 by heddn: Installation not working with Dropzone 6
-
Berdir β
committed 164a0ce4 on 8.x-2.x
- Status changed to Fixed
9 months ago 9:33pm 29 February 2024 -
Berdir β
committed 06dfccbe on 8.x-2.x
Issue #3295283 by Berdir: Fix Dropzone 6 version in README
-
Berdir β
committed 06dfccbe on 8.x-2.x
If 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:
"drupal/dropzonejs": "2.8.0", "drupal/dropzonejs_eb_widget": "2.8.0"
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.
- π¨πSwitzerland berdir Switzerland
It 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.
- π©πͺGermany volkerk
@berdir: Added follow-up for dist file detection.
π Fix detection of dropzonejs dist files for versions < 6 Active Automatically closed - issue fixed for 2 weeks with no activity.
- π¬π§United Kingdom therobyouknow
This is perhaps a great example for using import maps.
What exactly is an import map?
Answer:
This can be used to allow JS imports without having to specify the full path to the JS file.
- 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 β