Uncaught SyntaxError: Lexical declaration cannot appear in a single-statement context

Created on 12 July 2023, over 1 year ago
Updated 12 August 2024, 5 months ago

Problem/Motivation

I have a case where I've added a geofield map in a field group, on a media entity.

When the js is aggregated by Drupal core, I get the following error:
Uncaught SyntaxError: Lexical declaration cannot appear in a single-statement context

The field groups are not shown in horizontal tabs and the geofield map is not loaded because of this error.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇧🇪Belgium JeroenT 🇧🇪

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