Uncaught TypeError: $(...).once is not a function with upgrade to Drupal v10.0 and TB MM v3.0.0-alpha2

Created on 17 August 2023, over 1 year ago
Updated 18 August 2023, over 1 year ago

Problem/Motivation

When upgrading from Drupal v9.4.14 using TB Mega Menu v1.7 to Drupal v10.0.0 and TB Mega Menu v3.0.0-alpha2, I'm encountering 'Uncaught TypeError: $(...).once is not a function' errors in the console and the sub-navigation is not working when hovered over and css not being applied.

Steps to reproduce

To reproduce the problem, follow these steps:

Install Drupal v9.4.14 and TB Mega Menu v1.7.
Create a mega menu and add some links.
Upgrade to Drupal v10.0.0 and TB Mega Menu v3.0.0-alpha2.
Visit the page with the mega menu.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: won't fix

Version

3.0

Component

Code

Created by

🇺🇸United States bgivens

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

Comments & Activities

  • Issue created by @bgivens
  • 🇺🇸United States TolstoyDotCom L.A.

    I grepped that version and I don't see the use of 'once', they have a workaround ("Look for an initialized attribute so that we do not have to worry about attaching once() or jQuery.once().")

    The dev version is basically the same.

    So, I'd suggest clearing the cache, doing a hard refresh of the browser, etc.

  • Status changed to Closed: won't fix over 1 year ago
  • 🇮🇳India keshavv India

    @TolstoyDotCom I agree with your point.

Production build 0.71.5 2024