Skip to content

[TwigComponent] 3rd party anon. components breaks debug:twig-component #2087

Closed
@kbond

Description

@kbond

Ref: #2019 (comment)

From here, you can organize your components into subdirectories if desired. For example, a component like twig:Acme:Table:Header will be located in /templates/components/Table/Header.html.twig.

Just a heads up, if there is a subfolder inside /templates/components, it breaks the TwigComponentDebugCommand

In ComponentFactory.php line 256:
Unknown component "Cards:Card". And no matching anonymous component template was found.
Even tough, twig correctly renders the component using the :Folder:ComponentName described in the original post.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions