Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build succeed in VSCode, failure in cmd #92

Open
planyway opened this issue Jan 22, 2023 · 0 comments
Open

Build succeed in VSCode, failure in cmd #92

planyway opened this issue Jan 22, 2023 · 0 comments

Comments

@planyway
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant