aggregate JavaScript files freezes slideshow

Created on 16 September 2024, 7 months ago

I have a views slideshow on the front page of the site.

In the "performance" admin area (where you can set things like page caching etc, in admin/configuration/development/performance), if I select the "Aggregate JavaScript files" checkbox, and then save the configuration, the slideshow stops rotating.

The only way I can get the slideshow to work is to leave the "Aggregate JavaScript files" box unchecked.

Is this expected?

This problem started right after I updated Drupal from 10.1.8 to 10.3.5. The version( probably ver.5.0.0 ) that was in Drupal 10.1.8 had no problem with JS Aggregation on.

Console errors on the browser is like below:

js_IbvqxQAP2YOy_kPdX…pKfpCBd1xuAP36szb:2 Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')
    at js_IbvqxQAP2YOy_kPdX…pCBd1xuAP36szb:2:39
    at js_IbvqxQAP2YOy_kPdX…CBd1xuAP36szb:2:135
Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')
    at js_Cd75mMKPvz0k0xCNwD3Yi2NL8YxWOD9vLr7IcJp01IM.js
    at js_Cd75mMKPvz0k0xCNwD3Yi2NL8YxWOD9vLr7IcJp01IM.js
js_Cd75mMKPvz0k0xCNw…pKfpCBd1xuAP36szb:2 Uncaught TypeError: Cannot read properties of undefined (reading 'bindAjaxLinks')
    at HTMLDocument.<anonymous> (js_Cd75mMKPvz0k0xCNw…Bd1xuAP36szb:2:3955)
    at HTMLDocument.dispatch (js_m7PhFpkebx7Y1L_M8…d1xuAP36szb:5:40035)
    at v.handle (js_m7PhFpkebx7Y1L_M8…d1xuAP36szb:5:38006)
    at Object.trigger (js_m7PhFpkebx7Y1L_M8…d1xuAP36szb:5:70124)
    at HTMLDocument.<anonymous> (js_m7PhFpkebx7Y1L_M8…d1xuAP36szb:5:70726)
    at Function.each (js_m7PhFpkebx7Y1L_M8…Bd1xuAP36szb:5:3129)
    at ce.fn.init.each (js_m7PhFpkebx7Y1L_M8…Bd1xuAP36szb:5:1594)
    at ce.fn.init.trigger (js_m7PhFpkebx7Y1L_M8…d1xuAP36szb:5:70701)
    at initContextual (js_Cd75mMKPvz0k0xCNw…Bd1xuAP36szb:2:2196)
    at js_Cd75mMKPvz0k0xCNw…Bd1xuAP36szb:2:3000
js_m7PhFpkebx7Y1L_M8…KfpCBd1xuAP36szb:15 Uncaught TypeError: Drupal.ajax is not a function
    at Drupal.views.ajaxView.attachPagerLinkAjax (js_Cd75mMKPvz0k0xCNw…d1xuAP36szb:16:3010)
    at Function.each (js_m7PhFpkebx7Y1L_M8…Bd1xuAP36szb:5:3129)
    at ce.fn.init.each (js_m7PhFpkebx7Y1L_M8…Bd1xuAP36szb:5:1594)
    at Drupal.views.ajaxView.attachPagerAjax (js_Cd75mMKPvz0k0xCNw…d1xuAP36szb:16:2562)
    at Array.forEach (<anonymous>)
    at new Drupal.views.ajaxView (js_Cd75mMKPvz0k0xCNw…d1xuAP36szb:16:1681)
    at js_Cd75mMKPvz0k0xCNw…Bd1xuAP36szb:16:292
    at Array.forEach (<anonymous>)
    at Drupal.behaviors.ViewsAjaxView.attach (js_Cd75mMKPvz0k0xCNw…Bd1xuAP36szb:16:252)
    at js_m7PhFpkebx7Y1L_M8…Bd1xuAP36szb:15:427
🐛 Bug report
Status

Closed: works as designed

Version

5.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @lionsea
  • Status changed to Closed: works as designed 7 months ago
  • Solved.
    These errors happens due to the js error from core theme, Olivero. It is solved after fixing the code in Olivero.

Production build 0.71.5 2024