I ended up deleting the minimum scenario and tried directly in a real project, which is of course a lot more complex. It works with 5.4.16 but fails in every 5.4.X version after that.