Flatpickr library reference incorrect in v3.0.4 release

Created on 10 June 2025, about 1 month ago

Problem/Motivation

After updating to v3.0.4, subsequent uses of composer (for unrelated modules/packages) resulted in a blocking error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires flatpickr-library/flatpickr-library, 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.

Steps to reproduce

  1. Install or update the timepicker module to v3.0.4
  2. Run a composer command on a different module, e.g. composer update drupal/token_views_filter --with-all-dependencies --dry-run
  3. Note the blocking error as cited above

Proposed resolution

It appears that the module's composer.libraries.json file needs a small tweak to get composer to run properly after installation/updating (module file path: timepicker-timepicker/composer.libraries.json):

  • line 90 - before:
    "flatpickr-library/flatpickr-library": "4.6.13"
  • line 90 - after:
    "flatpickr/flatpickr": "4.6.13"

(Note: line 90 could be preserved as-is if the "name" of the "flatpickr-library" library (line 73) is changed from flatpickr/flatpickr to flatpickr-library/flatpickr-library)

After making this file change, updating the "timepicker" module resolves the composer blocking errors.

Note: I can provide a patch/MR with this change if that would be helpful.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024