
DRUPAL error: jQuery UI Touch Punch requires the jquery_ui_touch_punch.min.js. library
DRUPAL's jQuery UI Touch Punch module requires the jquery_ui_touch_punch library.
DRUPAL maintenance

The jQuery UI Touch Punch module has been installed without the required JS library.
There are 2 possible causes for this error message:
- or you've installed the jQuery UI Touch Punch module by hand via the download on the drupal.org website, but forgot to download the associated JS library,
- or you've installed the jQuery UI Touch Punch contribution module via the Composer tool, but the module didn't provide for autoloading of the library on which the module depends.
Please note that installing modules by manually downloading contribution modules from the drupal.org website has become bad practice since Drupal version 8 , as modules are sometimes dependent on external libraries. Manual downloading requires you to read the module code to learn about the dependencies , so that you can install them by hand.
La bonne pratique est d'utiliser Composer, outil d'installation des packages. Composer prend en compte les dépendances précisées dans les fichiers composer.json et <module>.info.yml.
This page describes the Composer installation solution.
If you're installing your libraries manually, please follow the instructions on the dedicated page"Installing an external library that is required by a contributed module" on the official drupal.org website.

Solution 1: reinstall the DRUPAL jQuery UI Touch Punch module via composer
If the composer.json file of the jQuery UI Touch Punch module contains the "require" configuration for the desired library, then simply reinstall the module as follows.
Open your command line console (Git bash on Windows) and perform the following steps:
Step 1: using the command lines, navigate to the directory containing the composer.json file
use the cd command:
cd <chemin vers répertoire contenant composer.json>
Step 2: uninstall the jQuery UI Touch Punch module
In your command terminal, execute the following line:
composer remove drupal/jquery_ui_touch_punch
Step 3: Reinstall the jQuery UI Touch Punch module
In your command terminal, execute the following line:
composer require 'drupal/jquery_ui_touch_punch
Step 4: Check that the associated library is installed
Open File Explorer and check that your project's "libraries" directory contains the jquery_ui_touch_punch directory. This contains the resources expected by the associated module.

Solution 2: if the associated library has still not been installed
If solution 1 didn't work: the jQuery UI Touch Punch module was installed, but not the associated library.
In this case, the library can be installed independently.
Open your command line console (Git bash on Windows) and perform the following steps:
Step 1: using the command lines, navigate to the directory containing the composer.json file
use the cd command:
cd <chemin vers répertoire contenant composer.json>
Step 2: installing the jQuery UI Touch Punch library
composer require politsin/jquery-ui-touch-punch
Step 3: Check that the associated library is installed
Open File Explorer and check that your project's "libraries" directory contains the jquery_ui_touch_punch directory. This contains the resources expected by the associated module.
Looking for a Drupal maintenance contract?
Are you looking for a maintenance contract for your DRUPAL websites? My maintenance contract offer could be of interest to you.
You can also contact me using the contact form.