HI ,

I am facing website encounter unexpected error while installing gesso theme

Comments

brahmjeet789 created an issue. See original summary.

brahmjeet789’s picture

StatusFileSize
new90.95 KB

Also 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.

clafferty’s picture

Have 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.

clafferty’s picture

Assigned: Unassigned » clafferty
Status: Needs work » Postponed (maintainer needs more info)
tlwatson’s picture

For 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.

clafferty’s picture

Version: 8.x-2.x-dev » 8.x-3.0
Status: Postponed (maintainer needs more info) » Closed (works as designed)

Yes, 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.