Uncaught ReferenceError: once is not defined

Created on 15 September 2023, about 1 year ago
Updated 2 October 2023, about 1 year ago

Hi,

Problem/Motivation

I have this JS error when the library loads : Uncaught ReferenceError: once is not defined
I have the latest version (2.0.3), and Drupal 8.9.14

Thanks for you help

🐛 Bug report
Status

Closed: won't fix

Version

2.0

Component

Code (miscellaneous)

Created by

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

Comments & Activities

  • Issue created by @EricRondo
  • 🇮🇳India shubham_jain

    hi, I think the issue is resolved already. Please share screenshot so can help.

  • Status changed to Needs review about 1 year ago
  • 🇺🇦Ukraine paulrad

    Hi there! Seems like your problem is caused by code changes being implemented with Drupal 10 compatibility update.

    In Drupal 10 we don't have a core/jquery.once library and are using core/once which was introduced in Drupal 9.2. You can read about it in documentation here .

    If you want to use this module, you should upgrade your site's core version to 9.2^ or downgrade the module's version to 2.0.2 or prior to that.

  • 🇮🇳India shubham_jain

    Hi @paulrad, you are absolutely right.

  • Status changed to RTBC about 1 year ago
  • Status changed to Closed: won't fix about 1 year ago
  • 🇯🇴Jordan Rajab Natshah Jordan
    • Thanks for reporting and following up on the issue.
    • Closing as won't fix.
    • Better to update to latest Drupal ~9.5.0 version or upgrade to Drupal ~10.1.0
Production build 0.71.5 2024