Uncaught SyntaxError: Invalid or unexpected token with AdvAgg

Created on 6 September 2021, almost 3 years ago
Updated 11 February 2024, 5 months ago

Problem/Motivation

When AdvAgg module's setting "Enable preprocess on all JS" is enabled, the following JS error is thrown in the browser console.log:

Uncaught SyntaxError: Invalid or unexpected token

It's only happening since updating to beta10. With beta9 and previous versions this was not the case.
I could only trace it as far as to line 97 in gin_lb/dist/js/gin_lb_lb.js.
Btw: I noticed that there are uncommented console.log() entries in this and other js files of this module. I don't think those are responsible for the error but I thought I mention it. :)

Steps to reproduce

  1. Install the latest versions of gin_lb and AdvAgg β†’ (8.x-4.1).
  2. On page /admin/config/development/performance/advagg/mod activate the setting "Enable preprocess on all JS".
  3. Clear caches, just to be sure. :)
  4. Visit a layout builder layout page (eg. /node/1/layout) and check the browser console log.

If the error is there, disable the setting "Enable preprocess on all JS" and revisit the steps 3 + 4 to check for the error message.

I hope, you can reproduce it. Otherwise, please let me know if I can provide more information.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany design.er

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.69.0 2024