After upgrading to Drupal 9.0.7. I am getting the following message in the browser console when clicking the back to top button. The button does not work:

jquery.min.js?v=3.5.1:2 Uncaught TypeError: S.easing[this.easing] is not a function
    at init.run (jquery.min.js?v=3.5.1:2)
    at u (jquery.min.js?v=3.5.1:2)
    at Function.S.fx.tick (jquery.min.js?v=3.5.1:2)
    at st (jquery.min.js?v=3.5.1:2)

Jquery version seems to be the same as drupal 8, so i'm kind of at a loss here.

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mfv created an issue. See original summary.

nikhitarathore’s picture

I had same problem with my drupal 9 project . i just added js library to show back to top for long page.

web/themes/custom/mytheme/mytheme.libraries.yml

js:
https://code.jquery.com/ui/1.8.5/jquery-ui.min.js: {type: external, attributes: {integrity: sha256-fOse6WapxTrUSJOJICXXYwHRJOPa6C1OUQXi7C9Ddy8=, crossorigin: anonymous }}
dependencies:
- core/jquery
- core/drupal.ajax
- core/drupal
- core/drupalSettings
- core/jquery.once

toomanynights’s picture

Same problem on the same Drupal version. The solution above unfortunately crashes the site.

nikhitarathore’s picture

@toomanynights Try above solution now. it should work. I updated code

toomanynights’s picture

@nikhitarathore Same =( I'm running Bootstrap Barrio. Maybe those are incompatible or something.

VladimirAus’s picture

Can replicate on both claro and olivero themes running Drupal 9.0 and Drupal 9.1

dendrmx’s picture

#2 Works for me.
Drupal 9.0.7 with a custom Bootstrap-based theme.

Thank you @nikhitarathore

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

Bagz’s picture

jquery ui is deprecated in 9.x which is why this module doesn't work (see https://www.drupal.org/node/3067969)

A work around is to install the jquery_ui_effects module and add the dependency "jquery_ui_effects/fade" to your theme's libraries.yml file.

ivnish’s picture

Status: Active » Closed (duplicate)