emulsify-ds / compound

Compound is the default component collection for Emulsify
https://emulsify-ds.github.io/compound/
GNU General Public License v2.0
12 stars 12 forks source link

[BUG] Logo component not defined in twig #90

Closed codechefmarc closed 1 year ago

codechefmarc commented 1 year ago

Describe the bug After installing compound with --all components, an error shows up in Drupal watchdog:

Twig\Error\LoaderError: Template "@molecules/logo/logo.twig" is not defined in "@organisms/site/site-header/_site-header-branding.twig" at line 1. in Twig\Loader\ChainLoader->getCacheKey() (line 99 of /app/vendor/twig/twig/src/Loader/ChainLoader.php).

To Reproduce Steps to reproduce the behavior:

  1. Spin up a new Emulsify theme from the project root: emulsify init "My New Theme"
  2. Go to the newly created theme directory and run emulsify system install compound --all to install all components from compound.
  3. Enable the new theme in Drupal
  4. Flush Drupal cache
  5. Attempt to view a page on the site, this caused a "The website encountered an unexpected error. Please try again later." error for me.
  6. Visit /admin/reports/dblog and verify that the error is as stated above.

Expected behavior The logo component doesn't appear to be loading into the system from the compound install. It should be installed with the --all flag.

Desktop (please complete the following information):

Additional context Possibly related to: https://github.com/emulsify-ds/compound/releases/tag/1.13.1

lpeabody commented 1 year ago

I'm also seeing this. I also tried installing via the git repo and branch method emulsify system install --repository=git@github.com:emulsify-ds/compound.git --checkout=main. The result installed component files looks like this:

image

lpeabody commented 1 year ago

It also results in:

Twig\Error\LoaderError: Template "@molecules/tabs/tabs.twig" is not defined in "themes/custom/page_demo_theme/templates/navigation/menu-local-tasks.html.twig" at line 14. in Twig\Loader\ChainLoader->getCacheKey() (line 98 of /var/www/html/vendor/twig/twig/src/Loader/ChainLoader.php).
github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.13.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: