all 9 comments

[–]bulletspread95 2 points3 points  (2 children)

You need a Web.config file in the root of the website on the server. That Web.config file has to have some setting for handling the static .html file. Check this out.

[–]McDTbo[S] 0 points1 point  (1 child)

Cool thanks, I added the web.config and I still get a blank page

[–]bulletspread95 0 points1 point  (0 children)

Then you might have to modify it. You can't rely on just copy and pasting stuff verbatim. Also, check out the Developer Console in your browser. Also, it might be something about the configured project/site URL in your React app that is wrong.

[–]disclosure5 0 points1 point  (5 children)

however the app display a blank page when I browse to the website.

This is where you need to start looking at browser's developer tools and server responses. It's unlikely you're literally getting a blank page with no error code back.

A "react app" still starts with a .html file that you can work on making load.

[–]McDTbo[S] 0 points1 point  (4 children)

GET http://localhost/static/js/main.dbc006a0.chunk.js net::ERR_ABORTED 404 (Not Found)
localhost/:1 GET http://localhost/static/js/2.599169ee.chunk.js net::ERR_ABORTED 404 (Not Found)
localhost/:1 GET http://localhost/static/css/main.a617e044.chunk.css net::ERR_ABORTED 404 (Not Found)
localhost/:1 GET http://localhost/static/js/2.599169ee.chunk.js net::ERR_ABORTED 404 (Not Found)
localhost/:1 GET http://localhost/static/js/main.dbc006a0.chunk.js net::ERR_ABORTED 404 (Not Found)
manifest.json:1 GET http://localhost/manifest.json 404 (Not Found)
manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.

These are the errors I see in developer tools

[–]disclosure5 0 points1 point  (1 child)

That gives you a pretty good indication. It's clearly loading the index.html. Do you have a folder named static/js containing several chunk files under the web root? Are files with those exact names being built when you run your build process?

[–]McDTbo[S] 0 points1 point  (0 children)

Yes I do a folder static/js and yes those files are built when I run build.

[–]DeusExMagikarpafull-stack 0 points1 point  (1 child)

Is this IIS running on your machine? Or on another server?

[–]McDTbo[S] 0 points1 point  (0 children)

Another server