Aggregation, Drupal.AjaxCommands is undefined.

Created on 12 September 2024, 2 months ago
Updated 19 September 2024, about 2 months ago

Problem/Motivation

When css/js aggregation is turn on:

Uncaught TypeError: can't access property "prototype", Drupal.AjaxCommands is undefined

Steps to reproduce

Might be a timing issue on my site and not easy to replicate. Would only happen if AjaxCommands was not already loaded.

Line 13 of turnstile.ajax.js. Drupal.AjaxCommands.prototype

Proposed resolution

Add core/drupal.ajax as a dependency of library turnstile.ajax.

Remaining tasks

User interface changes

None.

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kazajhodo

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

Comments & Activities

Production build 0.71.5 2024