Broken when using JS aggregation

Created on 23 September 2025, 15 days ago

Problem/Motivation

With JS aggregation enabled (at /admin/config/development/performance), we get the following error when clicking the "Tour" button:

DOMException: IntersectionObserver constructor: rootMargin must be specified in pixels or percent.

and the tour does NOT appear.

With JS aggregation enabled, everything works fine and as expected.

The "rootMargin" code can be found in tour.js:

...
y=Le(a),_={rootMargin:-h+"px "+-m+"px "+-w+"px "+-y+"px"
 ...

Steps to reproduce

  1. Define a tour for the frontend and enable aggregation.
  2. See console for the error

Proposed resolution

Find out why this is broken with aggregation enabled

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024