React publish 404 #138

Closed
opened 2025-08-09 17:15:08 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @michael-mccoy on 3/8/2018

I'm trying to publish to my local IIS the initial react app that is generated with dotnet new react and I am getting 404 not found for the static files. The index.html loads but is blank. Looking at the index.html that is generated it is pointing to /static/js/main.5aa7d1c0.js which seems weird to me because they are within ClientApp\build\ directory. Can anyone help point me in the right direction? Thanks in advance.

I am running dotnet core 2.0 and using the latest react template found here: Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0

*Originally created by @michael-mccoy on 3/8/2018* I'm trying to publish to my local IIS the initial react app that is generated with `dotnet new react` and I am getting 404 not found for the static files. The index.html loads but is blank. Looking at the index.html that is generated it is pointing to `/static/js/main.5aa7d1c0.js` which seems weird to me because they are within ClientApp\build\ directory. Can anyone help point me in the right direction? Thanks in advance. I am running dotnet core 2.0 and using the latest react template found here: Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#138
No description provided.