Skip to content

Unable to connect to the SPA development server at 'https://localhost:44490'. / Visual Studio 2022 - ASP.NET Core Angular #43243

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


I just created a project in angular with asp.net core and I get this error, I checked the paths that give me error and found nothing strange, I get the same error when trying to run from visual studio code or with "dotnet run", this does not happen if I create a project with angular cli in vs code, it only happens with vs. The project is brand new so I did not touch anything.

Error: Module not found: Error: Can't resolve 'C:/Users/ALEXANDER/Desktop/p/c#/Project1/Project1/ClientApp/src/app/nav-menu/nav-menu.component.css?ngResource' in 'C:\Users\ALEXANDER\Desktop\p\c#\Project1\Project1\ClientApp'

Error: Module not found: Error: Can't resolve 'C:\Users\ALEXANDER\Desktop\p\c#\Project1\Project1\ClientApp\node_modules\webpack-dev-server\client\index.js?protocol=auto%3A&username=&password=&hostname=0.0.0.0&port=0&pathname=%2fws&logging=info&reconnect=10' in 'C:\Users\ALEXANDER\Desktop\p\c#\Project1\Project1\ClientApp'

Error: The loader "C:/Users/ALEXANDER/Desktop/p/c#/Project1/Project1/ClientApp/src/app/nav-menu/nav-menu.component.css" didn't return a string.


Original Comments

Feedback Bot on 8/11/2022, 09:57 AM:

(private comment, text removed)


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

Labels

✔️ Resolution: By DesignResolved because the behavior in this issue is the intended design.Author: Migration Bot 🤖The issue was created by a issue mover bot. The author may not be the actual author.Status: Resolvedarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesfeature-spa

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions