Add missing dependency symfony/css-selector

Created on 6 February 2024, 11 months ago
Updated 20 February 2024, 10 months ago

Reported by @idiaz.roncero in https://github.com/e0ipso/twig-storybook/issues/3

After trying this on a clean new Drupal 10 install using ddev, I faced this error:

LogicException: To filter with a CSS selector, install the CssSelector component ("composer require symfony/css-selector"). Or use filterXpath instead. in Symfony\Component\DomCrawler\Crawler->createCssSelectorConverter() (line 1204 of /var/www/html/vendor/symfony/dom-crawler/Crawler.php).
Symfony\Component\DomCrawler\Crawler->filter('body script') (Line: 43)
Drupal\storybook\EventSubscriber\AlterBodySubscriber->alter(Object, 'kernel.response', Object)

Installing the dependency manually solves the issue.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Miscellaneous

Created by

e0ipso Can Picafort

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024