Unexpected token "punctuation" of value ":"

Created on 8 September 2025, 14 days ago

Problem/Motivation

When creating a field which has a ":" symbol (e.g. a DS Field - "dynamic_block_field:node_title") in the machine name I've got this error:

But I'm not sure whether it is a problem within an SDC module or Twig library or something else ?

Steps to reproduce

In my case:

  • Install modules: DS, UI Patterns, UI Patterns Layouts (ui_patterns_layouts)
  • Create a DS Field: e.g. a Block field with Title or Breadcrumb
  • Apply a component to the node view as a layout
  • Put the new DS field inside the view
  • Visit the node page
🐛 Bug report
Status

Active

Version

11.2 🔥

Component

single-directory components

Created by

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

Comments & Activities

  • Issue created by @Lus
  • 🇳🇿New Zealand quietone

    HI, If this problem was discovered on a version of Drupal that is not 11.x, add that information in the issue summary and leave the version at 11.x. In Drupal core changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies . Thanks.

Production build 0.71.5 2024