SDDS theme must be the default theme for Twig namespaces to work

Created on 23 August 2024, 26 days ago
Updated 10 September 2024, 9 days ago

Problem/Motivation

Finally debugged this one... was getting:

Twig\Error\LoaderError: Template "@atoms/button/button.twig" is not defined in "civictheme:back-to-top" at line 9. in Twig\Loader\ChainLoader->getCacheKey() (line 99 of /var/www/html/vendor/twig/twig/src/Loader/ChainLoader.php).

even with Components module enabled. It turns out that Twig will not find your namespaces unless you are the default theme!

Steps to reproduce

Proposed resolution

Not sure if there is a work around but obviously making it the default theme makes sense.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Postponed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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

Comments & Activities

Production build 0.71.5 2024