jQuery Cookie is deprecated, use js-cookies

Created on 29 January 2024, 10 months ago

Problem/Motivation

When upgrading Drupal from 9 to 10, I get an JavaScript error that says "$.cookie is not a function". This is due to Drupal 10 not including the jquery.cookie library anymore (deprecated in Drupal 9). For more information, refer to the relevant change record: https://www.drupal.org/node/3104677

Steps to reproduce

- Install and enable drupal/gtl on Drupal 10 site.
- Open developer tools and notice the errors on the JS console.

Proposed resolution

Use js-cookie library instead of jquery.cookie.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇨🇭Switzerland pvbergen

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