wingsuit-designsystem / wingsuit

Twig for Storybook
GNU General Public License v2.0
90 stars 16 forks source link

template not found #217

Closed jphat closed 1 year ago

jphat commented 1 year ago

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 that app-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:

  1. install ws using Quickstart guide: npx @wingsuit-designsystem/cli init -k tailwind
  2. enable wingsuit
  3. go to /
  4. 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:

thanks.

jphat commented 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).

finnlewis commented 1 year ago

@jphat did you resolved that last issue?

I also now see

The "container" plugin does not exist

after downgrading components to 2.4.0

jphat commented 1 year ago

@finnlewis, yes I did.

Generate both wingsuit and importantly Drupal files. Clear cache.