Video output via views produces "Uncaught ReferenceError: drupalSettings is not defined"

Created on 23 August 2022, about 2 years ago
Updated 4 July 2023, over 1 year ago

Problem/Motivation

For anonymous users media output via core views produces JavaScript error "Uncaught ReferenceError: drupalSettings is not defined". As a result, gdpr_video.js is not loaded, the video remain invisible and consent layer and consent button are not assigned.

Steps to reproduce

  • Create a media element of type "remote video"
  • Create a view with media
  • Show views output logged in: All works fine
  • Show views output logged out: Video is missing

Proposed resolution

Add the 'core/drupal' dependency to the gdpr_video.libraries.yml.

🐛 Bug report
Status

Needs review

Version

1.1

Component

Code

Created by

🇩🇪Germany siteformer

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.

Production build 0.71.5 2024