Twig\Error\SyntaxError: Unknown "spaceless" tag

Created on 17 April 2024, 2 months ago
Updated 19 April 2024, 2 months ago

Problem/Motivation

Render error with csv-export when trying to export a csv from a view
The full error message is:
Twig\Error\SyntaxError: Unknown "spaceless" tag in "__string_template__3ac598eeea72e55f70c93b13af082578" at line 1. in Twig\Parser->subparse() (regel 160 van /var/www/[mysite]/vendor/twig/twig/src/Parser.php).

Although it seems like a twig thing, I think it may have to do with views-export. I have search all my twig-files for the old spaceless implementation (see resolution) but I could not find any. This makes me think that maybe some temporary generated file may be using it, but I cannot find it...
could this be the case?

using drupal 10.2.4

Steps to reproduce

Proposed resolution

replace 'spaceless' with the new 'apply spaceless'
- {% spaceless %}
+ {% apply spaceless %}

- {% endspaceless%}
+ {% endapply%}

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

1.4

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands Rop Rotterdam

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

Comments & Activities

Production build 0.69.0 2024