- π©πͺGermany thomaswalther Rhein-Main Area
I made a Drupal 10 new system with composer (create-project \
drupal/recommended-project:10.1.1) and drush.I try to require with composer:
- wikimedia/composer-merge-plugin
- oomphinc/composer-installers-extender
- drupal/dropzonejs enyo/dropzone
I got errors on enabling:
[error] Unable to install module 'dropzonejs' due to unmet requirement(s):
- Dropzonejs requires the dropzone.min.js library.
Download it (https://github.com/enyo/dropzone) and place it in the
libraries folder (/libraries)So I have no folder like /libraries in my webroot.
- πΊπΈUnited States nkraft
omg, how is this still a problem? My dev team requires that we handle ALL libraries through Composer, rather than manually tracking files in the "libraries" folder.
The module is still upset that I don't have "dropzone.min.js" -- even though I followed tthe project page instructions exactly, AND I DO have dropzone.js (no MIN) in my libraries folder.
This seems like it should have been updated or patched appropriately by now. Am I missing instructions somewhere? Or can I safely abandon this module finally?
- πΊπΈUnited States slippast
@nkraft
I came here from a Google search thinking the same thing. How is this not solved?
Check the new install instructions on the module's home page. You'll find instructions that explain how to move the dropzonejs library to Composer. They weren't a perfect fit for me since I already have other libraries added via the 'repositories' key. I used this structure in my composer.json file:
"dropzonejs": { "type": "package", "package": { "name": "enyo/dropzone", "version": "5.7.1", "type": "drupal-library", "dist": { "url": "https://github.com/enyo/dropzone/archive/v5.7.1.zip", "type": "zip" } } },
I then ran this command per instructions: composer require drupal/dropzonejs enyo/dropzone and the error is gone from the status page.
- π¨π¦Canada RobLoach Earth
I've also made a shim repository for this over at https://github.com/components/dropzone .... https://packagist.org/packages/components/dropzone
- Status changed to Closed: duplicate
9 months ago 9:43pm 29 February 2024 - π¨πSwitzerland berdir Switzerland
The install instructions were updated in π Installation not working with Dropzone 6 Needs review and support the most recent versions and various file locations now. Not tools though, but you should download dist.zip as the instructions now state.
- π¬π§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 βhttps://www.drupal.org/project/dropzonejs/issues/3295283#comment-15492496 π Installation not working with Dropzone 6 Needs review