I'm trying to launch the "Weather Forecast" template solution but encountering an issue I can't resolve.
Here's what I've done:
First, I installed Visual Studio 2022 and Angular 17 (
npm install -g @angular/[email protected]) as specified in the book "ASP.NET Core 8 and Angular" by Valerio De Sanctis.Then I created a new solution using the "Angular and ASP.NET Core" template in Visual Studio with the settings shown in the screenshot.
The solution was created successfully.
Following the book's instructions, I reordered the solution projects.
When I try to run the projects, npm begins restoring dependencies and I see several outputs in the console and in browser.
If I open https://127.0.0.1:52578/, the page loads, but Visual Studio shows an error:
My question is: what could be causing this problem and how can I fix it?










