TWIG Fatal Error in child theme pattern definitions after 1.5 upgrade

Created on 13 April 2023, over 1 year ago

Problem/Motivation

We upgraded to version 1.5 from 1.4. We have a child theme with its own pattern/component definitions. These were working fine in version 1.4. Now in version 1.5 we're getting the following errors in our testing suite:

Twig\Error\LoaderError: Template "@my_subtheme/news-list/news-item-list.html.twig" is not defined in "modules/contrib/ui_patterns/templates/patterns-use-wrapper.html.twig" at line 9. in Twig\Loader\ChainLoader->getCacheKey() (line 98 of /vendor/twig/twig/src/Loader/ChainLoader.php).

I've reviewed #3335833 and while it seems related, the patch there didn't resolve this issue.

Steps to reproduce

1. Add a new component/pattern to a child theme
2. Be on version 1.5 of `ui_patterns`
3. See TWIG error

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

1.5

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States joegl

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

Comments & Activities

Production build 0.71.5 2024