#109774Error "The package backend depends on (some extension) which is not present in the system" when replacing polyfill packages in the root composer.json
Description
Today I came across a very weird bug when I tried to replace a symfony/polyfill-package in a v13 project. The error message when doing `composer install` or `composer update` reads as follows:
In PackageManager.php line 1089: The package "backend" depends on "sf_event_mgt" which is not present in the system.
This is the composer.json you’ll need to reproduce:
{
"name": "jwagner/test-typo3-v13",
"description": "Testing TYPO3 v13 polyfill issue",
"license": "GPL-2.0-or-later",
"type": "project",
"config": {
"optimize-autoloader": true,
"sort-packages": true,
"allow-plugins": {
"typo3/class-alias-loader": true,
"typo3/cms-composer-installers": true
}
},
"extra": {
"typo3/cms": {
"web-dir": "public"
}
},
"require": {
"derhansen/sf_event_mgt": "^8.6.1",
"typo3/cms-belog": "^13.4.28",
"typo3/cms-beuser": "^13.4.28",
"typo3/cms-felogin": "^13.4.28",
"typo3/cms-fluid-styled-content": "^13.4.28",
"typo3/cms-form": "^13.4.28",
"typo3/cms-impexp": "^13.4.28",
"typo3/cms-indexed-search": "^13.4.28",
"typo3/cms-info": "^13.4.28",
"typo3/cms-redirects": "^13.4.28",
"typo3/cms-rte-ckeditor": "^13.4.28",
"typo3/cms-scheduler": "^13.4.28",
"typo3/cms-seo": "^13.4.28",
"typo3/cms-setup": "^13.4.28",
"typo3/cms-sys-note": "^13.4.28",
"typo3/cms-tstemplate": "^13.4.28",
"typo3/cms-viewpage": "^13.4.28"
},
"replace": {
"symfony/polyfill-php83": "*"
}
}
which is basically the cms-base-distribution 13.4 with derhansen/sf_event_mgt, platform requirement removed and a few extra blocks.
What’s weird is that it removing the `web-dir` entry gets rid of the error. Removing the `replace` does, too, for obvious reasons.
Might be related to #96388?
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 4
-
Jörn Wagner changed description <span data-processor="relativetime" data-value="2026-05-05T12:49:29+00:00" > 05/05/26, 12:49 </span>
-
Helmut Hummel changed Duplicates #96388 <span data-processor="relativetime" data-value="2026-05-05T12:49:49+00:00" > 05/05/26, 12:49 </span>
-
Helmut Hummel commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-05-06T10:49:25+00:00" > 05/06/26, 10:49 </span>closing as duplicate
Jörn Wagner wrote:
> What’s weird is that it removing the `web-dir` entry gets rid of the error.
This is to be expected, since all packages with `extra.typo3/cms` section are considered for dependency ordering.
if you don’t need to deviate from the default public folder, you can leave this section out in the root package.
Another workaround would be to create a non TYPO3 extension composer package with the accordant replaces and depend on that in the project.