After following all the instructions and running dev restart from my project folder, and visiting the provided URL, I get this errors:

The result is the same even after recreating both with Project Type "php" and "drupal9".
Also, I'm setting Docroot Location as "/api/web/", is that correct?