"Uncaught TypeError: $.cookie is not a function" JS error after update to 1.16

Created on 27 September 2021, about 3 years ago
Updated 11 January 2024, 11 months ago

After updating to 1.16, I'm getting this JS error:

Uncaught TypeError: $.cookie is not a function
    at Function.Drupal.eu_cookie_compliance.getCookieStatus (eu_cookie_compliance.js?v=1.9:558)
    at Function.Drupal.eu_cookie_compliance.getCurrentStatus (eu_cookie_compliance.js?v=1.9:571)
    at HTMLBodyElement.<anonymous> (eu_cookie_compliance.js?v=1.9:24)
    at Function.each (jquery.min.js?v=3.6.0:2)
    at S.fn.init.each (jquery.min.js?v=3.6.0:2)
    at Object.attach (eu_cookie_compliance.js?v=1.9:21)
    at drupal.js?v=9.2.6:27
    at Array.forEach (<anonymous>)
    at Object.Drupal.attachBehaviors (drupal.js?v=9.2.6:24)
    at drupal.init.js?v=9.2.6:29

Including the deprecated "core/jquery.cookie" instead of "core/js-cookie" fixes the problem for me. This is however only a workaround, as the latter one should be used

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇹Austria agoradesign

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024