Problem/Motivation

drupal.js?v=10.1.1:64 Uncaught TypeError: $(...).once is not a function
    at Object.attach (eu_cookie_compliance_hooks.js?rymm26:31:58)

Steps to reproduce

Install the EU Cookie Compliance GTM and check the browser console.

Proposed resolution

Replace jquery/once with core/once

Remaining tasks

User interface changes

API changes

Data model changes

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

i-trokhanenko created an issue. See original summary.

sahil.goyal’s picture

Status: Active » Needs review
Issue tags: +@deprecated
StatusFileSize
new1.42 KB
new292.88 KB

Here is the updated patch resolving the deprecated the jquery/once which replaces it and makes use of the core/once library. Moving to NR.

keshavv’s picture

@sahil.goyal No need to comment the existing code. Just do the replacement and we are good to merge.
Thank you.

sahil.goyal’s picture

StatusFileSize
new1.23 KB

My bad, forgot to remove commented code while working on, Here is the updated patch.

keshavv’s picture

Status: Needs review » Reviewed & tested by the community

@sahil.goyal. Now it looks good. We can go with it.
Thank you.

i-trokhanenko’s picture

Patch #4 works well for me. Thanks!

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

  • reszli committed 494f8e7a on 2.x authored by sahil.goyal
    Issue #3378075 by sahil.goyal: Uncaught TypeError: $(...).once is not a...
reszli’s picture

Status: Reviewed & tested by the community » Fixed

thanks for the contribution
part of 2.1.0 release

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.