Batch throws JavaScript Error when aggregation is on

Created on 20 February 2025, about 2 months ago

Problem/Motivation

On Drupal 10.4.3, when I am using the batch process to process anything, and I have the JavaScript Aggregation on, I get the following JavaScript errors:

Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')
Uncaught TypeError: Drupal.ProgressBar is not a constructor

These errors do not appear when aggregation is off.

Steps to reproduce

Install Drupal 10.4.3
Turn on JavaScript aggregation.
Run a batch process.
Batch process will not run, showing these JavaScript errors.
Turn off JavaScript aggregation.
Run a batch process.
Batch process will run as expected.

πŸ› Bug report
Status

Active

Version

10.4 ✨

Component

batch system

Created by

πŸ‡ΊπŸ‡ΈUnited States ACoolDevDude California

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

Comments & Activities

Production build 0.71.5 2024