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

Issue fork gtl-3417877

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pvbergen created an issue. See original summary.

guillaumepacilly made their first commit to this issue’s fork.

guillaumepacilly’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

guillaumepacilly’s picture

Status: Fixed » Closed (fixed)