js-cookie now deprecated

Created on 20 June 2024, 6 months ago
Updated 29 July 2024, 5 months ago

Problem/Motivation

The js-cookie library is deprecated, and has been removed from core - https://www.drupal.org/node/3322720

There is now a contrib module that provides this library, drupal/js_cookie.

Steps to reproduce

Upgrade to Drupal core 10.2.x with this module enabled, see error:

User warning: The following theme is missing from the file system: js_cookie in Drupal\Core\Extension\ExtensionPathResolver->getPathname() (line 63 of core/lib/Drupal/Core/Extension/ExtensionPathResolver.php).

Proposed resolution

Replace dependency on core/js-cookie with js_cookie/js-cookie, and add drupal/js_cookie to composer.json as required package.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇨🇦Canada smulvih2 Canada 🍁

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

Comments & Activities

Production build 0.71.5 2024