0

I have my react js application deployed on godaddy vps which has been linked fine but when I tried to load url it doesn't display any data on browser. Can Somebody help me to solve this problem. Thanks in advance.

Here is screen shot from my browser

Saad Chaudry
  • 87
  • 1
  • 2
  • 11
  • What does your console display? Maybe your application instantly crashes, resulting in a white screen. – Alserda Aug 17 '22 at 08:10
  • @Alserda Console only displays this ``` Uncaught SyntaxError: Unexpected token '<' ``` but application works fine on localhost – Saad Chaudry Aug 17 '22 at 08:16
  • I viewed the URL and think it's most likely related due to a mismatch between your virtual router and Apache settings. You need to redirect all traffic to your root: https://stackoverflow.com/a/48872476/3170628. Please try that and let me know. – Alserda Aug 17 '22 at 08:40
  • @Alserda sure Let me try – Saad Chaudry Aug 17 '22 at 08:42
  • @Alserda I have tried but it doesn't help problem remains same – Saad Chaudry Aug 17 '22 at 08:56
  • Navigating to your `/login` page does render something, so it seems to be something with your `/smartfusion` route. Maybe try to make a build locally and serve it locally (with php -S for example) and try to debug there. – Alserda Aug 17 '22 at 09:31
  • @Alserda Let me check – Saad Chaudry Aug 17 '22 at 09:57
  • I have solved my problem just by changing sub domain to main domain and its works perfectly now – Saad Chaudry Aug 17 '22 at 10:51

0 Answers0