Uncaught TypeError: Cannot read properties of undefined (reading 'CountUp')

Created on 6 April 2022, over 2 years ago
Updated 5 December 2023, 12 months ago

Greetings
I'm using drupal 9.3.9 and install countUp module in my site, but countup not working for me. That's error is:
"Uncaught TypeError: Cannot read properties of undefined (reading 'CountUp')
at Object.countup
at HTMLSpanElement.
at Function.each
at S.fn.init.each
at Object.checkVisibility
at later"
I can't find my issue in anywhere. Please help me.

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.2

Component

Code

Created by

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.

  • 🇬🇧United Kingdom rmathew

    Sorry to reopen an old ticket but I believe this is still broken in 8.x-2.2.

    A fresh composer install results in the library being installed at /libraries/countUp.js. The countup.libraries.yml says that the library is located at /libraries/countup.js/dist/countUp.umd.js, resulting in a 404.

    The attached patch updates the library location with the correct capitalization.

  • Status changed to Needs review over 1 year ago
  • Status changed to Closed: cannot reproduce 12 months ago
  • 🇱🇺Luxembourg B-Prod

    @rmathew this is not the case, after a fresh install the library is at the expected location:
    /libraries/countup.js/dist/countUp.umd.js

Production build 0.71.5 2024