Replace use of jquery.cookie with js-cookie

Created on 27 August 2023, over 1 year ago
Updated 15 November 2023, about 1 year 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 .

Steps to reproduce

- Install and enable bootstrap_site_alert 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.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States mmenavas

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

Comments & Activities

Production build 0.71.5 2024