• Resolved calude908

    (@calude908)


    First I want to say that I’ve followed instructions carefully and reinstalled the plugin / local WP multiple times. I am on windows and I have been using the local site shell command prompt provided by local WP.

    I’ve been able to create a react app and see it work on my local WP server. However, even after creating the same directory on my live server, nothing shows up on it. When I edit the page that has the page-slug for the app, I see there is a HTML block with a div id=root tag but when I view the page with chrome developer tool it is an empty tag with a height of 0.

    My guess is that it’s not calling the right JS files or the path to it is incorrect. But I’m not sure. I’ve followed all the other forums here and noticed that my package.json file was supposed to be updated and have a different “build” script but mine had:
    "build": "react-scripts test",
    So, I changed it to
    "build": "set PUBLIC_URL=/wp-content/reactpress/apps/four/build&&react-scripts build",

    The “set ” and “&&” was necessary because I am working on windows.
    Although this works, and I can see that my index.html has the PUBLIC_URL path that I set, I still see nothing on my live server.

    Any ideas on what I can do?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author rockiger

    (@rockiger)

    Can you build React apps on windows for use on a POSIX system. Could it be that the paths get screwed up. I am just asking, because I don’t have a windows system to test.

Viewing 1 replies (of 1 total)
  • The topic ‘Empty screen on live server’ is closed to new replies.