Problem/Motivation
According to composer: Package oomphinc/composer-installers-extender is abandoned, you should avoid using it. No replacement was suggested. The documentation instructions (https://git.drupalcode.org/project/clientside_validation/-/blob/4.0.x/RE...) should be updated to reflect a different installation path using composer.
Proposed resolution
- Update composer.json
Add the official GitHub repository for jQuery Validation directly into your "repositories" array."repositories": [ { "type": "composer", "url": "https://packages.drupal.org/8" }, { "type": "package", "package": { "name": "jquery/jquery-validation", "version": "1.20.0", "type": "drupal-library", "dist": { "url": "https://github.com", "type": "zip" } } } ] - Verify Core Installer Configuration
"extra": { "installer-paths": { "web/libraries/{$name}": ["type:drupal-library"] } } - Run the Composer command
Install the plugin using the custom package name defined in your repository
composer require jquery/jquery-validation - Verify Folder Map
Once installed, verify that the path matches what clientside_validation_jquery is looking for:
Target Path: web/libraries/jquery-validation/dist/jquery.validate.js
If you see the files extracted cleanly into that folder, clearing your cache (drush cr) will immediately hook up clientside validation across your forms.
Comments