Pipeline 'does not define any stages', but it does?

This also happens to me with a Jenkins started from docker image jenkins/jenkins:2.332.3 and any pipeline (including your hello world pipeline). Since this is also the first google result to the problem, it would be nice if there would be a possible solution.