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.
-
Run it on a web server. See the build informations. Run: npm install -g serve serve -s buildPRogalla– PRogalla2018-12-19 15:58:03 +00:00Commented Dec 19, 2018 at 15:58
-
1Are you using create-react-app ?CREM– CREM2018-12-19 16:05:14 +00:00Commented 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 amNikola Veselinovic– Nikola Veselinovic2018-12-19 16:18:32 +00:00Commented Dec 19, 2018 at 16:18
-
i followed all suggestions made in this thread but none of them worked => stackoverflow.com/questions/39791069/…Nikola Veselinovic– Nikola Veselinovic2018-12-19 16:26:03 +00:00Commented Dec 19, 2018 at 16:26
-
Is it your site served ok, if you make serve -s build ? LocallyCREM– CREM2018-12-19 16:39:40 +00:00Commented Dec 19, 2018 at 16:39
|
Show 3 more comments