Closed jphat closed 1 year ago
I checked the demo site and compared Components module version and looks like the v3 is the culprit. I downgraded to v2 (ui_patterns downgraded to 1.2, matching the demo site) and seems to work but now ran into Drupal\Component\Plugin\Exception\PluginNotFoundException: The "container" plugin does not exist. Valid plugin IDs for Drupal\ui_patterns\UiPatternsManager are: in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
@jphat did you resolved that last issue?
I also now see
The "container" plugin does not exist
after downgrading components to 2.4.0
@finnlewis, yes I did.
Generate both wingsuit and importantly Drupal files. Clear cache.
Describe the bug I'm having trouble getting Drupal to register components following the Quickstart guide. I did confirm the
dist path
in WS settings, and thatapp-drupal
was generated correctly. In particular, 'wingsuit/dist/app-drupal/atomic/patterns/04-templates/site-container.twig' exists.To Reproduce Steps to reproduce the behavior:
Twig\Error\LoaderError: Template "@templates/site-container.twig" is not defined in "themes/custom/wingsuit/apps/drupal/templates/layout/page.html.twig" at line 54. in Twig\Loader\ChainLoader->getCacheKey() (line 98 of vendor/twig/twig/src/Loader/ChainLoader.php).
Expected behavior WS/Drupal to register and use templates and components
Desktop (please complete the following information):
Additional context Components! v3 have a new format of including components and following that, I have ` components: namespaces: foo:
and updating 'wingsuit/apps/drupal/templates/layout/page.html.twig' to
{% embed "@foo/site-container.twig" with { primary_menu: page.primary_menu, language_select: page.language_switcher, footer_menu: page.footer_menu, highlighted: page.highlighted } %}changes the error to
Twig\Error\LoaderError: Template "@organisms/header/header.twig" is not defined in "@drupal/site-container.twig" at line 4. in Twig\Loader\ChainLoader->getCacheKey() (line 98 of vendor/twig/twig/src/Loader/ChainLoader.php). `thanks.