Using custom facet form widget triggers template "facets-form-item.html.twig" not found

Created on 17 November 2022, almost 2 years ago
Updated 18 July 2024, 4 months ago

Problem/Motivation

I use latest drupal core 9.4.8 and latest facets_form version, I get this type of error when visiting a page with facets

Twig\Error\LoaderError: Template "modules/contrib/facets_form/templates/facets-form-item.html.twig" is not defined. in Twig\Loader\ChainLoader->getCacheKey() (line 98 of /var/www/html/vendor/twig/twig/src/Loader/ChainLoader.php).

Steps to reproduce

1. Define a custom facet widget that extends existing widget of facets_form module
2. Display widget on a page.

Proposed resolution

Provide default template in the project module that will be used for custom facet form widgets.

πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine nginex

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024