Hi Roland Eriksson,
Thank you for reaching out to us on the Microsoft Q&A forum.
It appears that the issue you are encountering is specific to GitHub Codespaces, while everything functions correctly in local Visual Studio Code environment. I recommend continuing your learning with the local setup, as it allows you to run and test the project without any complications.
Please note that the issues in Codespaces may be addressed in future updates, so it could be beneficial to revisit the environment once improvements are implemented. If you have any further questions or require additional assistance, please do not hesitate to reach out.
If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.
Thank you.