Closed (works as designed)
Project:
Gesso
Version:
8.x-3.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Apr 2018 at 17:22 UTC
Updated:
21 Aug 2019 at 15:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
brahmjeet789 commentedAlso i found such error Twig_Error_Loader: Template "@components/views/views-view/views-view.twig" is not defined (Drupal\Core\Template\Loader\ThemeRegistryLoader: Unable to find template "@components/views/views-view/views-view.twig" in the Drupal theme registry.) in "themes/gesso/templates/views/views-view.html.twig" at line 38. in Twig_Loader_Chain->getCacheKey() (line 129 of /var/www/html/drupal-8.5.2/vendor/twig/twig/lib/Twig/Loader/Chain.php). please look into it.
Comment #3
clafferty commentedHave you followed all the instructions in the README file? The theme requires the Component Libraries module, NPM, Grunt and Composer. If you have those installed, run 'npm install' then 'grunt' in the theme folder and the theme should work as expected.
Comment #4
clafferty commentedComment #5
tlwatsonFor those getting this issue: I was getting the same issue with a new project using 8.x-3.0 version.
I compiled via 'gulp', and I could view my work in PatternLab.
However, when enabling and setting the theme as default, when I try to view a page, I get an error similar to OP:
Twig\Error\LoaderError: Template "@components/block/block.twig" is not defined. ..from what I could tell, this was called from the first place that a component was used on the page. I tried to figure out how Drupal was supposed to understand where @components is... turns out to be the required Components module. I looked and found out that the module was not turned on.tl;dr - if you are getting this error, make sure you have the Components module included and turned on.
Comment #6
clafferty commentedYes, the Components Libraries module needs to be installed and enabled (as well as enabling the Gesso Helper module, which comes with the theme). Full installation instructions are in the README file, but I've updated the project page to also list these requirements.