I am new to React and trying to add my React site to a server so that I can test out a php form processing script. I have run the npm run build command and uploaded the resulting ‘dist’ folder to the server folder that can display static html files.
When I try to navigate to the new URL I am presented with this error in the console –
Looking at the error message it would seem that the browser is looking for the assets folder in the wrong place and the /dist/ folder should be added before it.
It looks like the initial index.html page is being loaded as the title reflects that, other than that the screen is blank.
Some more info – I am loading the site up to a URL containing a WordPress site, so am adding the dist files to the public_html folder.
Any assistance would be much appreciated 🙂