Subtheme component 'is not defined'

Created on 28 January 2025, about 1 month ago

I can't use a subtheme component inside a template

I have duplicated the radix 'page' component to my components repertory, like this :
my_theme>components>page>page.twig

In my page.html.twig I replaced this inclusion:
{% include 'radix:page' %}
with this one:
{% include 'mytheme:page' %}

But, i get this error :

Twig\Error\LoaderError: Template "mytheme:page" is not defined in "themes/custom/mytheme/templates/page/page.html.twig" at line 45...

Using radix 5.0 I could achieve this inclusion like this:
{% include '@mytheme/page/page.twig' %}

Thanks for your help.

πŸ’¬ Support request
Status

Active

Version

6.0

Component

Code

Created by

πŸ‡«πŸ‡·France kumkum29

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

Comments & Activities

Production build 0.71.5 2024