CakePHP 3.8.10 to 4.x upgrade error

Hi!

I want to upgrade the CakePHP framework behind our project. Currently we are using the 3.8.10 version.
I did all the steps to complete the process described here: https://book.cakephp.org/4/en/appendices/4-0-upgrade-guide.html
(I have no, errors, warnings or notices in my code)
All the steps worked just fine but the last.

After i run the following command:

php composer.phar require --update-with-dependencies “cakephp/cakephp:4.0.*”

I receive the following error message:

Problem 1
- cakephp/bake 1.12.0 requires cakephp/cakephp ^3.8.0 -> satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.10, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.8.9, 3.x-dev] but these conflict with your requirements or minimum-stability.
- cakephp/bake 1.12.0 requires cakephp/cakephp ^3.8.0 -> satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.10, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.8.9, 3.x-dev] but these conflict with your requirements or minimum-stability.
- cakephp/bake 1.12.0 requires cakephp/cakephp ^3.8.0 -> satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.10, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.8.9, 3.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for cakephp/bake (locked at 1.12.0, required as ^1.9.0) -> satisfiable by cakephp/bake[1.12.0].

Can you help me identify the problem? What am I doing wrong?

https://getcomposer.org/doc/articles/versions.md#caret-version-range-

^3.8.0 means anything past 3.8.0, but not including 4.x. Ask composer to upgrade both CakePHP and Bake?

Okey, but how do i do that? Why does that not listed in the upgrade guide? I followed the exact steps listed there? If they are not working, whats the correct way to do it?
Can you give me a step-by-step guide to do it?:slight_smile:

I’m no expert on composer, bake, or v4. If the upgrade guide is wrong, maybe raise an issue on that in the github documentation repository?

Did you update your app’s composer file for Cake 4? Take a look at [1], is everything up to date, esp. cake/bake at version 2+? Maybe something got stuck.

[1] https://github.com/cakephp/app/blob/master/composer.json