The Bartik dependency is not compatible with Drupal 11

Created on 22 August 2025, about 2 months ago

Problem/Motivation

I’m going to migrate from Drupal 10 to Drupal 11.
When I do composer install :

Problem 1
- Root composer.json requires drupal/bricks ^2.1.5 -> satisfiable by drupal/bricks[2.1.5, 2.x-dev].
- drupal/bartik[1.0.0-alpha1, ..., 1.0.2] require drupal/core ^9 || ^10 -> found drupal/core[9.0.0-alpha1, ..., 9.5.x-dev, 10.0.0-alpha1, ..., 10.6.x-dev] but it conflicts with your root composer.json require (^11.2.3).
- drupal/bricks[2.1.5, ..., 2.x-dev] require drupal/bartik ^1.0 -> satisfiable by drupal/bartik[1.0.0-alpha1, 1.0.0, 1.0.1, 1.0.2].

The Bricks module is marked as compatible with Drupal 11, but Bartik is not.

Is there a fix?"

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

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

Comments & Activities

  • Issue created by @didierdidier
  • First commit to issue fork.
  • Since Bartik is not supported in Drupal 11, you need to remove it and update your composer.json to ignore its dependency. Follow these steps:

    Step 1: Remove Bartik theme
    Run the following command to remove Bartik:
    composer remove drupal/bartik
    Step 2: Update composer.json
    Add the following section to your composer.json to prevent Composer from requiring Bartik again:
    json
    "replace": {
    "drupal/bartik": "*"
    }
    (Place this inside the root level of your composer.json file.)

    Step 3: Finally, update the Bricks module with all required dependencies:
    composer update drupal/bricks --with-all-dependencies

Production build 0.71.5 2024