Andrew Fletcher published: 4 January 2022 2 minutes read
Have you tried to run a composer update script that has bower-asset/jquery-ui-slider-pips set? I have and realised that jquery-ui-slider-pips package had been removed. So I added it back, and ran the command composer update.
composer update Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires bower-asset/jquery-ui-slider-pips, it could not be found in any version, there may be a typo in the package name. Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details. - It's a private package and you forgot to add a custom repository to find it Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Hmmm, clearly not that way to apply. Which I knew, just being a little cheeky and testing. The better way to add is to run
composer require "bower-asset/jquery-ui-slider-pips:^1.11"
However, running this produced the following:
[InvalidArgumentException] Could not find a matching version of package bower-asset/jquery-ui-slider-pips. Check the packa ge spelling, your version constraint and that the package is available in a stability which mat ches your minimum-stability (stable). require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]...
A little more research and you will find the package jquery pips has been deprecated and is no longer maintained. This plugin should still function (with an older version of jQueryUI). However, the recommended package is Svelte range slider
https://github.com/simeydotme/svelte-range-slider-pips
Time to move on from jQuery!
Related articles
Andrew Fletcher
•
17 Mar 2025
Upgrading to PHP 8.4 challenges with Drupal contrib modules
The upgrade from PHP 8.3.14 to PHP 8.4.4 presents challenges for Drupal 10.4 websites, particularly when dealing with contributed modules. While Drupal core operates seamlessly, various contrib modules have not yet been updated to accommodate changes introduced in PHP 8.4.x. This has resulted in...
Andrew Fletcher
•
20 Feb 2025
Handling duplicate records in Drupal
Duplicate records in Drupal can cause significant issues, particularly when they lead to integrity constraint violations in the database. These errors often occur due to duplicate UUIDs in the `node` table, which can result from programmatic imports, migrations, or unintended database...
Andrew Fletcher
•
17 Feb 2025
The overlooked challenge of migration updates in Drupal projects
When working on Drupal migrations, developers often assume that adding a new field to the process section will seamlessly update existing content. However, unless explicitly handled, Drupal’s migration system does not automatically apply changes to previously migrated records. This oversight can...