Update to Drupal 10.4.0 breaks Timeline view display

Created on 23 December 2024, 1 day ago

Problem/Motivation

I have 2 sites that both use the Timelines JS view, implemented in very similar ways as the site's frontend designs follow similar motifs. When I update either site from Drupal 10.3.10 to 10.4.0, my Timeline Views all break on the site. I've tried updating the Timelines JS version to the 3.3.18 version without success. I've also tried using the CDN of that version, and while the error is slightly different, it is still broken.

The error is in the Inspector Panel - Console. It is:
"Uncaught TypeError: Cannot read properties of undefined (reading 'Timeline')"

Specifically pointing out this function:
(function() {
drupalSettings.TimelineJS.forEach(function(timeline, key) {
if (timeline['processed'] != true)
window.timeline = new TL.Timeline(timeline['embed_id'],timeline['source'],timeline['options']);
timeline['processed'] = true;
});
}
)();

The result is that the block wrapper is output to the page, but it is an empty div.

Steps to reproduce

Use composer to update site to Drupal version 10.4.0 from 10.3.10.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States haemishm

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024