Skip to content

Running frontend:dev-disable Results in cache:backend Error #213

@danarbello

Description

@danarbello

Description

As a developer, I would like to disable front-end development tooling like Twig Debugging. To do this, Usher provides a Robo command to do this via composer robo frontend:dev-disable. However, when I run this on Imprivata (composer robo frontend:dev-disable imprivata) although the command completes successfully and without error any successive Drush commands result in the following error:

ddev drush @imprivata.ddev cr

In Container.php line 157:

  You have requested a non-existent service "cache.backend.null". Did you
  mean one of these: "cache.backend.redis", "cache.backend.apcu", "cache.b
  ackend.memory", "cache.backend.php"?


Failed to run drush @imprivata.ddev cr: exit status 1

Ultimately, this results in a WSOD for the rendered site with the following error:

The website encountered an unexpected error. Try again later.
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "cache.backend.null". Did you mean one of these: "cache.backend.apcu", "cache.backend.php", "cache.backend.memory", "cache.backend.redis"? in Drupal\Component\DependencyInjection\Container->get() (line 157 of core/lib/Drupal/Component/DependencyInjection/Container.php).

Issue Owner

@danarbello

To Reproduce

Steps

  1. Go to imprivata-drupal-8 repo
  2. Pull the project down locally and run it with DDEV
  3. After getting the project up and running, run composer robo frontend:dev-disable imprivata
  4. After completion, run a Drush command like ddev drush @imprivata.ddev cr
  5. See error

Environment

  • OS: macOS 14.5
  • Device: MacBook Pro M1 2021
  • Docker: OrbStack (1.6.2)
  • DDEV: 1.23.2

Expected Behavior

This should function as described by Usher's documentation: disables front-end tooling, especially Twig Debugging.

### Tasks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions