I have decided to not use Visual Studio 2019 as I was unable to solve the issue. I now am using replit.com (an online coding environment).
After further consideration, I think the error may be due to a failure in communication between the Visual Studio program and the browser; perhaps port communication.