Skip to content

Build succeed in VSCode, failure in cmd #92

@planyway

Description

@planyway

As suggested, I simply pressed F5 in VSCode, after that, a whole bunch of words come out, taking at least 5 seconds till I see the green words implying the build is successful. When I visit localhost:5000, I can see the website, which is great. However, when I try to do "dotnet run" in cmd, the green words implying a successful build show within a second, which seems to be too fast, and when I visit localhost:5000, I get the error:

"System.InvalidOperationException: The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request"

Is it that my node.js, or something skipped when running "dotnet run" in cmd? Or is it that I missed a command?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions