ReferenceError: _ is not defined for placeholder.js for anonymous user

Created on 31 May 2023, over 1 year ago
Updated 27 October 2023, about 1 year ago

Problem/Motivation

When using the site as a anonymous user I see the following error in the console:
"Uncaught ReferenceError: _ is not defined at Object.show (placeholder.js?v=1.x:29:9)"

Steps to reproduce

On a Drupal 10 site install FortyTwo and enable placeholder.js in the settings.
Use the site as a anonymous user and look at the console.

Proposed resolution

Include either the underscore library from Drupal or use Lodash.

Remaining tasks

  1. Write a patch
  2. Review the patch
  3. Release the patch

User interface changes

none

API changes

none

Data model changes

none

🐛 Bug report
Status

Fixed

Version

4.7

Component

Code

Created by

🇳🇱Netherlands arantxio Dordrecht

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

Comments & Activities

Production build 0.71.5 2024