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

The SPA default page middleware could not return the default page '/index.html' #37

Closed
lukee48 opened this issue May 30, 2020 · 5 comments

Comments

@lukee48
Copy link

lukee48 commented May 30, 2020

cloned and npm build but when running the app I get the following

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.

@liborpansky
Copy link
Contributor

After running npm build where do you publish the app?

@lukee48
Copy link
Author

lukee48 commented May 30, 2020

I followed the read me to the letter

  1. Cloned
  2. npm install
  3. dotnet run

Have I missed something?

@liborpansky
Copy link
Contributor

When you run dotnet run you should receive following output:

info: VueCliMiddleware[0]
      Starting server on port 8080...
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
      User profile is available. Using 'C:\Users\Libor\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
Hosting environment: Development
Content root path: C:\Projects\GitHub\SoftwareAteliers\asp-net-core-vue-starter
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
> asp-net-core-vue-starter@0.1.0 serve C:\Projects\GitHub\SoftwareAteliers\asp-net-core-vue-starter\ClientApp
> vue-cli-service serve "--port" "8080"
 INFO  Starting development server...
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
<s> [webpack.Progress] 0% compiling    
<s> [webpack.Progress] 10% building 0/0 modules 0 active 
...

Can you confirm you're running in Development environment?

@lukee48
Copy link
Author

lukee48 commented May 31, 2020

Sorry, that was exactly my issue.

For some reason, VS code is ignoring my launch settings for Development Mode.

Thanks for that :)

@liborpansky
Copy link
Contributor

You can find more info in this issue #34

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

2 participants