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.

This error does not appear to affect existing sites, but only on new installs. It looks like in 8.1.5 there were a few commits which changed discovery of patterns including:
- https://www.drupal.org/project/ui_patterns/issues/3311471

I'm wondering if we may need to change the structure of our child theme patterns? I can't find documentation or release notes with any more information on this change.

Steps to reproduce

1. Add a new component/pattern to a child theme
2. Be on version 1.5 of `ui_patterns`
3. Install a new drupal site.
4. See the twig error

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

joegl created an issue. See original summary.

joegl’s picture

Issue summary: View changes
pdureau’s picture

Status: Active » Closed (outdated)

I am sorry we didn't address your issue, but so much happened in one year and I hope you are not meeting this anymore.

joegl’s picture

For closure: We were able to resolve this internally and don't believe it was a problem with the module. It had to do with the a child theme pattern.