1

I have made a web app that has a few components and displays some texts depending on which button is pressed. However when i do npm run build it makes the build folder and everything in it but once i click on the index.html file it opens a blank page, same happens when i try to open it through a link on github. If anyone can help me figure this out i would be very thankful.


-my web app picture

-successful build

-files in the build folder

8
  • Run it on a web server. See the build informations. Run: npm install -g serve serve -s build Commented Dec 19, 2018 at 15:58
  • 1
    Are you using create-react-app ? Commented Dec 19, 2018 at 16:05
  • 1337 - i tried this but it didnt change anything PS C:\Users\Nikola\Desktop\myBook\my_book_app> npm install -g serve serve -s build C:\Users\Nikola\AppData\Roaming\npm\serve -> C:\Users\Nikola\AppData\Roaming\npm\node_modules\serve\bin\serve.js + [email protected] + [email protected] + [email protected] ******** Crying Freeman - yes, i am Commented Dec 19, 2018 at 16:18
  • i followed all suggestions made in this thread but none of them worked => stackoverflow.com/questions/39791069/… Commented Dec 19, 2018 at 16:26
  • Is it your site served ok, if you make serve -s build ? Locally Commented Dec 19, 2018 at 16:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.